1 #ifndef __GEMFIRE_EXCEPTION_H__ 2 #define __GEMFIRE_EXCEPTION_H__ 15 #include "gfcpp_globals.hpp" 20 #define GF_EX_MSG_LIMIT 2048 23 typedef SharedPtr<Exception> ExceptionPtr;
25 class DistributedSystem;
46 Exception(
const char* msg1,
const char* msg2 = NULL,
47 bool forceTrace =
false,
const ExceptionPtr& cause = NULLPTR);
67 virtual const char * getMessage()
const;
71 virtual void showMessage()
const;
76 virtual void printStackTrace()
const;
82 virtual size_t getStackTrace(
char* buffer,
size_t maxLength )
const;
86 virtual const char* getName( )
const;
97 inline ExceptionPtr getCause()
const 105 const ExceptionPtr& cause);
107 static bool s_exceptionStackTraceEnabled;
111 ExceptionPtr m_cause;
114 static void setStackTraces(
bool stackTraceEnabled);
121 #endif //ifndef __GEMFIRE_EXCEPTION_H__
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
DistributedSystem encapsulates this applications "connection" into the GemFire Java servers distribut...
Definition: DistributedSystem.hpp:35
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31
A description of an exception that occurred during a cache operation.
Definition: Exception.hpp:31