Hazelcast C++ Client
|
Base class for all exception originated from Hazelcast methods. More...
#include <IException.h>
Public Member Functions | |
IException (const std::string &exceptionName, const std::string &source, const std::string &message, const std::string &details, int32_t errorNo, int32_t causeCode, bool isRuntime, bool retryable=false) | |
IException (const std::string &exceptionName, const std::string &source, const std::string &message, int32_t errorNo, int32_t causeCode, bool isRuntime, bool retryable=false) | |
IException (const std::string &exceptionName, const std::string &source, const std::string &message, int32_t errorNo, bool isRuntime, bool retryable=false) | |
IException (const std::string &exceptionName, const std::string &source, const std::string &message, int32_t errorNo, const boost::shared_ptr< IException > &cause, bool isRuntime, bool retryable=false) | |
virtual char const * | what () const throw () |
return pointer to the explanation string. | |
const std::string & | getSource () const |
const std::string & | getMessage () const |
virtual void | raise () const |
virtual std::auto_ptr< IException > | clone () const |
We need this method to clone the specific derived exception when needed. More... | |
const std::string & | getDetails () const |
int32_t | getErrorCode () const |
int32_t | getCauseErrorCode () const |
const boost::shared_ptr< IException > & | getCause () const |
bool | isRuntimeException () const |
bool | isRetryable () const |
Protected Attributes | |
std::string | src |
std::string | msg |
std::string | details |
std::string | report |
int32_t | errorCode |
int32_t | causeErrorCode |
boost::shared_ptr< IException > | cause |
bool | runtimeException |
bool | retryable |
Friends | |
std::ostream HAZELCAST_API & | operator<< (std::ostream &os, const IException &exception) |
Base class for all exception originated from Hazelcast methods.
|
virtual |
We need this method to clone the specific derived exception when needed.
The exception has to be the derived type so that the exception rethrowing works as expected by throwing the derived exception. Exception throwing internals works by making a temporary copy of the exception.
Reimplemented in hazelcast::client::exception::UndefinedErrorCodeException.