LBIBCell
 All Classes Functions Variables Friends Pages
UtilLib::Exception Class Reference

#include <Exception.hpp>

Inheritance diagram for UtilLib::Exception:

Public Member Functions

 Exception (const char *message)
 
 Exception (const std::string &message)
 
 Exception (const std::string &message, const char *file, int line)
 
virtual ~Exception () throw ()
 
virtual const char * what () const throw ()
 

Protected Attributes

std::string msg_
 

Detailed Description

miind exception base class.

Definition at line 37 of file Exception.hpp.

Constructor & Destructor Documentation

UtilLib::Exception::Exception ( const char *  message)
explicit

Constructor for C-style string error messages.

Parameters
messageC-style string error message. The string contents are copied upon construction Responsibility for deleting the char* lies with the caller.

Definition at line 26 of file Exception.cpp.

UtilLib::Exception::Exception ( const std::string &  message)
explicit

Constructor for STL string class error messages.

Parameters
messageThe error message.

Definition at line 30 of file Exception.cpp.

UtilLib::Exception::Exception ( const std::string &  message,
const char *  file,
int  line 
)
explicit

Constructur for STL string class error messages with file and line number.

Parameters
messagean error message.
filea file name.
linea line number.

Definition at line 34 of file Exception.cpp.

UtilLib::Exception::~Exception ( )
throw (
)
virtual

Destructor. Nothrow guarantee. Virtual to allow for subclassing.

Definition at line 42 of file Exception.cpp.

Member Function Documentation

const char * UtilLib::Exception::what ( ) const
throw (
)
virtual

Returns a pointer to the constant error message.

Returns
A pointer to a const char*. The underlying memory is in posession of the Exception object. Callers must not attempt to free the memory.

Definition at line 45 of file Exception.cpp.

Member Data Documentation

std::string UtilLib::Exception::msg_
protected

Error message.

Definition at line 75 of file Exception.hpp.


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