escript
Revision_Unversioneddirectory
|
PasoException exception class. More...
#include <PasoException.h>
Public Member Functions | |
PasoException () | |
Default constructor for the exception. More... | |
PasoException (const char *cstr) | |
Constructor for the exception. More... | |
PasoException (const std::string &str) | |
Constructor for the exception. More... | |
PasoException (const PasoException &other) | |
Copy Constructor for the exception. More... | |
virtual | ~PasoException () THROW(NO_ARG) |
Destructor. More... | |
PasoException & | operator= (const PasoException &other) THROW(NO_ARG) |
Assignment operator. More... | |
virtual const std::string & | exceptionName () const |
Returns the name of the exception. More... | |
![]() | |
EsysException () | |
Default Constructor. Creates an exception with no message. More... | |
EsysException (const std::string &exceptionReason) | |
Constructor which creates a EsysException with the given message. More... | |
EsysException (const char *cStr) | |
Constructor which creates a EsysException with the given message. More... | |
EsysException (const EsysException &other) | |
Copy constructor. More... | |
virtual | ~EsysException () throw ( ) |
Destructor. More... | |
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. More... | |
const std::string & | toString () const |
Return the exception message in the form <Exception Name>: <Exception Message>. More... | |
const std::string & | reason () const |
Return a reference to the string that contains the exception reason. More... | |
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. More... | |
virtual const char * | what () const throw ( ) |
Return a description of the exception in the same format as the toString method. More... | |
void | updateMessage () |
update m_exceptionMessage after a reason update. More... | |
Protected Types | |
typedef EsysException | Parent |
![]() | |
typedef std::exception | Parent |
Static Private Attributes | |
static const std::string | exceptionNameValue |
PasoException exception class.
Description: PasoException exception class. The class provides a public function returning the exception name
|
protected |
|
inline |
Default constructor for the exception.
References PASOWRAP_DLL_API, and esysUtils::EsysException::updateMessage().
Referenced by paso::checkPasoError().
|
inline |
Constructor for the exception.
References PASOWRAP_DLL_API, and esysUtils::EsysException::updateMessage().
|
inline |
Constructor for the exception.
References PASOWRAP_DLL_API, and esysUtils::EsysException::updateMessage().
|
inline |
Copy Constructor for the exception.
References PASOWRAP_DLL_API, and esysUtils::EsysException::updateMessage().
|
inlinevirtual |
Destructor.
References PASOWRAP_DLL_API.
|
virtual |
Returns the name of the exception.
Reimplemented from esysUtils::EsysException.
References exceptionNameValue, and PASOWRAP_DLL_API.
Referenced by operator=().
|
inline |
Assignment operator.
References exceptionName(), PASOWRAP_DLL_API, and esysUtils::EsysException::updateMessage().
|
staticprivate |
Referenced by exceptionName().