Hazelcast C++ Client
Public Member Functions | Protected Attributes | Friends | List of all members
hazelcast::client::exception::IException Class Reference

Base class for all exception originated from Hazelcast methods. More...

#include <IException.h>

+ Inheritance diagram for hazelcast::client::exception::IException:

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< IExceptionclone () 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< IExceptioncause
 
bool runtimeException
 
bool retryable
 

Friends

std::ostream HAZELCAST_API & operator<< (std::ostream &os, const IException &exception)
 

Detailed Description

Base class for all exception originated from Hazelcast methods.

See also
InstanceNotActiveException
InterruptedException
IOException
HazelcastSerializationException
IClassCastException
IllegalStateException
IllegalArgumentException

Member Function Documentation

◆ clone()

std::auto_ptr< IException > hazelcast::client::exception::IException::clone ( ) const
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.

Returns
The copy of this exception

Reimplemented in hazelcast::client::exception::UndefinedErrorCodeException.


The documentation for this class was generated from the following files: