DomainException exception class.
More...
#include <DomainException.h>
Public Member Functions |
| DomainException () |
| Default constructor for the exception.
|
| DomainException (const char *cstr) |
| Constructor for the exception.
|
| DomainException (const std::string &str) |
| Constructor for the exception.
|
| DomainException (const DomainException &other) |
| Copy Constructor for the exception.
|
virtual DomainException & | operator= (const DomainException &other) THROW(NO_ARG) |
virtual | ~DomainException () THROW(NO_ARG) |
| Destructor.
|
virtual const std::string & | exceptionName () const |
| Returns the name of the exception.
|
| EsysException () |
| Default Constructor. Creates an exception with no message.
|
| EsysException (const std::string &exceptionReason) |
| Constructor which creates a EsysException with the given message.
|
| EsysException (const char *cStr) |
| Constructor which creates a EsysException with the given message.
|
| EsysException (const EsysException &other) |
| Copy constructor.
|
virtual | ~EsysException () throw ( ) |
| Destructor.
|
EsysException & | operator= (const EsysException &other) throw ( ) |
| Assignment needed to override any automatic assignment of std::exception, which can potentially copy around char *'s, causeing trouble in some implementations of STL. It will only copy the reason string, and update the message.
|
const std::string & | toString () const |
| Return the exception message in the form <Exception Name>: <Exception Message>.
|
const std::string & | reason () const |
| Return a reference to the string that contains the exception reason.
|
void | setReason (const std::string &new_reason) |
| set the string for the reason for the exception. This allows ousiders to modify m_reason, but the practice is discouraged. If string insertions are required, use string methods.
|
virtual const char * | what () const throw ( ) |
| Return a description of the exception in the same format as the toString method.
|
void | updateMessage () |
| update m_exceptionMessage after a reason update.
|
Detailed Description
DomainException exception class.
Description: DomainException exception class. The class provides a public function returning the exception name
Member Typedef Documentation
Constructor & Destructor Documentation
escript::DomainException::DomainException |
( |
| ) |
|
|
inline |
escript::DomainException::DomainException |
( |
const char * |
cstr | ) |
|
|
inline |
escript::DomainException::DomainException |
( |
const std::string & |
str | ) |
|
|
inline |
virtual escript::DomainException::~DomainException |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
const std::string & DomainException::exceptionName |
( |
| ) |
const |
|
virtual |
Member Data Documentation
const std::string DomainException::exceptionNameValue |
|
staticprivate |
The documentation for this class was generated from the following files: