Go to the documentation of this file.
    6 #ifndef OPENMPCD_EXCEPTIONS_HPP 
    7 #define OPENMPCD_EXCEPTIONS_HPP 
   22 #define OPENMPCD_THROW(ExceptionType, message) do{const char* const _file=__FILE__; const int _line=__LINE__; \ 
   23     char _lineString[10]; \ 
   24     sprintf(_lineString, "%d", _line); \ 
   25     std::string t(message); \ 
   26     t+="\r\n\r\nFile: "; \ 
   27     t+=_file; t+="\r\nLine: "; \ 
   29     throw(ExceptionType(t)); \ 
   72                 : 
Exception(
"Assertion violated:\n" + assertion)
 
   88                 : 
Exception(
"Inavlid configuration setting: "+setting)
 
  104                 : 
Exception(
"NULL pointer given: " + variable)
 
  120                 : 
Exception(
"Out of bounds access: "+msg)
 
  
Represents an exception that is due to an assertion violation.
 
Exception for a forbidden function call.
 
Exception(const std::string &msg)
The constructor.
 
InvalidArgumentException(const std::string &msg)
The constructor.
 
NULLPointerException(const std::string &variable)
The constructor.
 
Exception for unimplemented functionality.
 
AssertionException(const std::string &assertion)
The constructor.
 
UnimplementedException(const std::string &msg)
The constructor.
 
IOException(const std::string &msg)
The constructor.
 
Exception for errors in memory management.
 
OutOfBoundsException(const std::string &msg)
The constructor.
 
const std::string & getMessage() const
Returns the exception message.
 
MemoryManagementException(const std::string &msg)
The constructor.
 
Represents an invalid configuration.
 
The base exception class for OpenMPCD.
 
Exception for out-of-bounds access.
 
InvalidCallException(const std::string &msg)
The constructor.
 
InvalidConfigurationException(const std::string &setting)
The constructor.
 
Invalid argument exception.
 
DivisionByZeroException(const std::string &msg)
The constructor.