A description of an exception that occurred during a cache operation.
More...
Inherits apache::geode::client::SharedBase.
Inherited by apache::geode::client::AllConnectionsInUseException, apache::geode::client::AlreadyConnectedException, apache::geode::client::AssertionException, apache::geode::client::AuthenticationFailedException, apache::geode::client::AuthenticationRequiredException, apache::geode::client::BufferSizeExceededException, apache::geode::client::CacheClosedException, apache::geode::client::CacheExistsException, apache::geode::client::CacheListenerException, apache::geode::client::CacheLoaderException, apache::geode::client::CacheProxyException, apache::geode::client::CacheServerException, apache::geode::client::CacheWriterException, apache::geode::client::CacheXmlException, apache::geode::client::ClassCastException, apache::geode::client::CommitConflictException, apache::geode::client::ConcurrentModificationException, apache::geode::client::CqClosedException, apache::geode::client::CqException, apache::geode::client::CqExistsException, apache::geode::client::CqInvalidException, apache::geode::client::CqQueryException, apache::geode::client::DiskCorruptException, apache::geode::client::DiskFailureException, apache::geode::client::DuplicateDurableClientException, apache::geode::client::EntryDestroyedException, apache::geode::client::EntryExistsException, apache::geode::client::EntryNotFoundException, apache::geode::client::FatalInternalException, apache::geode::client::FileNotFoundException, apache::geode::client::FunctionExecutionException, apache::geode::client::GeodeConfigException, apache::geode::client::GeodeIOException, apache::geode::client::IllegalArgumentException, apache::geode::client::IllegalStateException, apache::geode::client::InitFailedException, apache::geode::client::InterruptedException, apache::geode::client::InvalidDeltaException, apache::geode::client::KeyNotFoundException, apache::geode::client::LeaseExpiredException, apache::geode::client::MessageException, apache::geode::client::NoAvailableLocatorsException, apache::geode::client::NoSystemException, apache::geode::client::NotAuthorizedException, apache::geode::client::NotConnectedException, apache::geode::client::NotOwnerException, apache::geode::client::NullPointerException, apache::geode::client::OutOfMemoryException, apache::geode::client::OutOfRangeException, apache::geode::client::PutAllPartialResultException, apache::geode::client::QueryException, apache::geode::client::RegionCreationFailedException, apache::geode::client::RegionDestroyedException, apache::geode::client::RegionExistsException, apache::geode::client::RollbackException, apache::geode::client::ShutdownFailedException, apache::geode::client::StatisticsDisabledException, apache::geode::client::TimeoutException, apache::geode::client::TransactionDataNodeHasDepartedException, apache::geode::client::TransactionDataRebalancedException, apache::geode::client::TransactionException, apache::geode::client::UnknownException, apache::geode::client::UnsupportedOperationException, and apache::geode::client::WrongRegionScopeException.
|
virtual Exception * | clone () const |
| Create a clone of this exception. More...
|
|
| Exception (const char *msg1, const char *msg2=NULL, bool forceTrace=false, const ExceptionPtr &cause=::apache::geode::client::NullSharedBase::s_instancePtr) |
| public methods More...
|
|
| Exception (const Exception &other) |
| Creates an exception as a copy of the given other exception. More...
|
|
virtual const char * | getMessage () const |
| Returns the message pointer. More...
|
|
virtual const char * | getName () const |
| Return the name of this exception type. More...
|
|
virtual size_t | getStackTrace (char *buffer, size_t maxLength) const |
| On some platforms, get a stacktrace string from the location the exception was created. More...
|
|
void | preserveSB () const |
| Atomically increment reference count. More...
|
|
virtual void | printStackTrace () const |
| On some platforms, print a stacktrace from the location the exception was created. More...
|
|
virtual void | raise () |
| Throw polymorphically; this allows storing an exception object pointer and throwing it later. More...
|
|
int32_t | refCount () |
|
void | releaseSB () const |
| Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More...
|
|
virtual void | showMessage () const |
| Show the message pointer. More...
|
|
virtual | ~Exception () |
| destructor More...
|
|
A description of an exception that occurred during a cache operation.
apache::geode::client::Exception::Exception |
( |
const char * |
msg1, |
|
|
const char * |
msg2 = NULL , |
|
|
bool |
forceTrace = false , |
|
|
const ExceptionPtr & |
cause = ::apache::geode::client::NullSharedBase::s_instancePtr |
|
) |
| |
public methods
Creates an exception.
- Parameters
-
msg1 | message pointer, this is copied into the exception. |
msg2 | optional extra message pointer, appended to msg1. |
forceTrace | enables a stacktrace for this exception regardless of stacktrace-enabled system property. |
cause | optional cause of the exception which can be later retrieved using getCause |
apache::geode::client::Exception::Exception |
( |
const Exception & |
other | ) |
|
Creates an exception as a copy of the given other exception.
- Parameters
-
other | the original exception. |
virtual apache::geode::client::Exception::~Exception |
( |
| ) |
|
|
virtual |
internal constructor used to clone this exception
virtual Exception* apache::geode::client::Exception::clone |
( |
| ) |
const |
|
virtual |
Create a clone of this exception.
virtual const char* apache::geode::client::Exception::getMessage |
( |
| ) |
const |
|
virtual |
Returns the message pointer.
- Returns
- message pointer
virtual const char* apache::geode::client::Exception::getName |
( |
| ) |
const |
|
virtual |
Return the name of this exception type.
virtual size_t apache::geode::client::Exception::getStackTrace |
( |
char * |
buffer, |
|
|
size_t |
maxLength |
|
) |
| const |
|
virtual |
On some platforms, get a stacktrace string from the location the exception was created.
void apache::geode::client::SharedBase::preserveSB |
( |
| ) |
const |
|
inherited |
Atomically increment reference count.
virtual void apache::geode::client::Exception::printStackTrace |
( |
| ) |
const |
|
virtual |
On some platforms, print a stacktrace from the location the exception was created.
virtual void apache::geode::client::Exception::raise |
( |
| ) |
|
|
inlinevirtual |
Throw polymorphically; this allows storing an exception object pointer and throwing it later.
int32_t apache::geode::client::SharedBase::refCount |
( |
| ) |
|
|
inlineinherited |
- Returns
- the reference count
void apache::geode::client::SharedBase::releaseSB |
( |
| ) |
const |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
virtual void apache::geode::client::Exception::showMessage |
( |
| ) |
const |
|
virtual |
Show the message pointer.