LAMA
lama::Exception Class Reference

The class Exception represents a general exception in lama. More...

#include <Exception.hpp>

Inheritance diagram for lama::Exception:

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

Detailed Description

The class Exception represents a general exception in lama.


Member Enumeration Documentation

Enumerator:
UNSUPPORTED_WARN 
UNSUPPORTED_ERROR 
UNSUPPORTED_IGNORE 
UNSUPPORTED_UNDEFINED 

Constructor & Destructor Documentation

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.

Parameters:
[in]messagethe message to assign to this.
lama::Exception::~Exception ( ) throw () [virtual]

The destructor destroys this Exception.


Member Function Documentation

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.

const char * lama::Exception::what ( ) const throw () [virtual]

what() returns the message of this Exception.

Returns:
the message of this Exception.

References mMessage.


Field Documentation


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