gemfire::Exception Class Reference

Inherited by gemfire::AlreadyConnectedException, gemfire::AssertionException, gemfire::AuthenticationFailedException, gemfire::AuthenticationRequiredException, gemfire::BufferSizeExceededException, gemfire::CacheClosedException, gemfire::CacheExistsException, gemfire::CacheLoaderException, gemfire::CacheProxyException, gemfire::CacheServerException, gemfire::CacheWriterException, gemfire::CacheXmlException, gemfire::ClassCastException, gemfire::ConcurrentModificationException, gemfire::DiskCorruptException, gemfire::DiskFailureException, gemfire::DuplicateDurableClientException, gemfire::EntryDestroyedException, gemfire::EntryExistsException, gemfire::EntryNotFoundException, gemfire::FatalInternalException, gemfire::FileNotFoundException, gemfire::GemfireConfigException, gemfire::GemfireIOException, gemfire::IllegalArgumentException, gemfire::IllegalStateException, gemfire::InitFailedException, gemfire::InterruptedException, gemfire::LeaseExpiredException, gemfire::LicenseException, gemfire::MessageException, gemfire::NoSystemException, gemfire::NotAuthorizedException, gemfire::NotConnectedException, gemfire::NotOwnerException, gemfire::NullPointerException, gemfire::OutOfMemoryException, gemfire::OutOfRangeException, gemfire::QueryException, gemfire::RedundancyException, gemfire::RegionCreationFailedException, gemfire::RegionDestroyedException, gemfire::RegionExistsException, gemfire::ShutdownFailedException, gemfire::StatisticsDisabledException, gemfire::TimeoutException, gemfire::UnknownException, gemfire::UnsupportedOperationException, and gemfire::WrongRegionScopeException.


Detailed Description

A description of an exception that occurred during a cache operation.

Public Member Functions

 Exception (const Exception &other)
 Creates an exception as a copy of the given other exception.
 Exception (const char *msg1, const char *msg2=NULL, bool forceTrace=false)
virtual const char * getMessage () const
 Returns the message pointer.
virtual const char * getName () const
 Return the name of this exception type.
virtual size_t getStackTrace (char *buffer, size_t maxLength) const
 On some platforms, get a stacktrace string from the location the exception was created.
virtual void printStackTrace () const
 On some platforms, print a stacktrace from the location the exception was created.
virtual void showMessage () const
 Show the message pointer.
virtual ~Exception ()

Constructor & Destructor Documentation

gemfire::Exception::Exception ( const char *  msg1,
const char *  msg2 = NULL,
bool  forceTrace = false 
)

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.

gemfire::Exception::Exception ( const Exception other  ) 

Creates an exception as a copy of the given other exception.

Parameters:
other the original exception.

virtual gemfire::Exception::~Exception (  )  [virtual]

destructor


Member Function Documentation

virtual const char* gemfire::Exception::getMessage (  )  const [virtual]

Returns the message pointer.

Returns:
message pointer

virtual const char* gemfire::Exception::getName (  )  const [virtual]

Return the name of this exception type.

virtual size_t gemfire::Exception::getStackTrace ( char *  buffer,
size_t  maxLength 
) const [virtual]

On some platforms, get a stacktrace string from the location the exception was created.

virtual void gemfire::Exception::printStackTrace (  )  const [virtual]

On some platforms, print a stacktrace from the location the exception was created.

virtual void gemfire::Exception::showMessage (  )  const [virtual]

Show the message pointer.


GemFire C++ Cache API Documentation