LAMA
|
The class Exception represents a general exception in lama. More...
#include <Exception.hpp>
Public Types | |
enum | UnsupportedType { UNSUPPORTED_WARN, UNSUPPORTED_ERROR, UNSUPPORTED_IGNORE, UNSUPPORTED_UNDEFINED } |
Public Member Functions | |
Exception () | |
The default constructor creates an Exception with no message. | |
Exception (const std::string &message) | |
This constructor creates an Exception with the passed message. | |
virtual | ~Exception () throw () |
The destructor destroys this Exception. | |
virtual const char * | what () const throw () |
what() returns the message of this Exception. | |
Static Public Member Functions | |
static void | addCallStack (std::ostringstream &output) |
Method that prints the current call stack in an output stream. | |
static UnsupportedType | getUnsupportedSetting () |
This method returns the actual setting for how to deal with unsupported features. | |
Protected Member Functions | |
LAMA_LOG_DECL_STATIC_LOGGER (logger) | |
Protected Attributes | |
std::string | mMessage |
Static Private Member Functions | |
static std::string | demangle (const char *string) |
Static Private Attributes | |
static UnsupportedType | unsupportedSetting = Exception::UNSUPPORTED_UNDEFINED |
The class Exception represents a general exception in lama.
The default constructor creates an Exception with no message.
lama::Exception::Exception | ( | const std::string & | message | ) |
This constructor creates an Exception with the passed message.
[in] | message | the message to assign to this. |
lama::Exception::~Exception | ( | ) | throw () [virtual] |
The destructor destroys this Exception.
void lama::Exception::addCallStack | ( | std::ostringstream & | output | ) | [static] |
Method that prints the current call stack in an output stream.
Very useful utility for identification of bugs, only supported for GNU compiler.
Referenced by lama::OpenShMemInterface::allocate(), lama::OpenShMemInterface::free(), and lama::OpenShMemInterface::syncronizeAll().
std::string lama::Exception::demangle | ( | const char * | string | ) | [static, private] |
This method returns the actual setting for how to deal with unsupported features.
References UNSUPPORTED_ERROR, UNSUPPORTED_IGNORE, UNSUPPORTED_UNDEFINED, UNSUPPORTED_WARN, and unsupportedSetting.
lama::Exception::LAMA_LOG_DECL_STATIC_LOGGER | ( | logger | ) | [protected] |
const char * lama::Exception::what | ( | ) | const throw () [virtual] |
std::string lama::Exception::mMessage [protected] |
Referenced by lama::CUDAException::CUDAException(), lama::MPIException::MPIException(), and what().
Exception::UnsupportedType lama::Exception::unsupportedSetting = Exception::UNSUPPORTED_UNDEFINED [static, private] |
Referenced by getUnsupportedSetting().