3 #ifndef GEODE_EXCEPTION_H_ 4 #define GEODE_EXCEPTION_H_ 27 #include "geode_globals.hpp" 34 #define GF_EX_MSG_LIMIT 2048 37 typedef SharedPtr<Exception> ExceptionPtr;
39 class DistributedSystem;
58 Exception(
const char* msg1,
const char* msg2 = NULL,
bool forceTrace =
false,
59 const ExceptionPtr& cause = NULLPTR);
79 virtual const char* getMessage()
const;
83 virtual void showMessage()
const;
88 virtual void printStackTrace()
const;
94 virtual size_t getStackTrace(
char* buffer,
size_t maxLength)
const;
98 virtual const char* getName()
const;
104 virtual void raise() {
throw *
this; }
106 inline ExceptionPtr getCause()
const {
return m_cause; }
111 const ExceptionPtr& cause);
113 static bool s_exceptionStackTraceEnabled;
117 ExceptionPtr m_cause;
120 static void setStackTraces(
bool stackTraceEnabled);
128 #endif // GEODE_EXCEPTION_H_ Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
DistributedSystem encapsulates this applications "connection" into the Geode Java servers distributed...
Definition: DistributedSystem.hpp:50
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
A description of an exception that occurred during a cache operation.
Definition: Exception.hpp:45
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:40
This namespace contains all the Geode C++ API classes, enumerations and globals.