#include <Exception.hpp>
Inheritance diagram for corelinux::Exception::

Public Types | |
| enum | Severity { CONTINUABLE = 1, THREADFATAL, PROCESSFATAL, THREADTERMINATE, PROCESSTERMINATE } |
| Exception Severity States. More... | |
Public Methods | |
| Exception (CharCptr why, CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false) | |
| Default Constructor. More... | |
| Exception (ExceptionCref crOther) | |
| Copy constructor. More... | |
| virtual | ~Exception (void) |
| Virtual Destructor. | |
| ExceptionRef | operator= (ExceptionCref otherRef) |
| Assignment operator overload. More... | |
| bool | operator== (ExceptionCref otherRef) |
| Comparisson operator overload. More... | |
| const std::string & | getFile (void) const |
| Accessor. More... | |
| LineNumCref | getLine (void) const |
| Accessor. More... | |
| const std::string & | getWhy (void) const |
| Accessor. More... | |
| const Severity & | getSeverity (void) const |
| Accessor. More... | |
| const std::string & | getUnwind (void) const |
| Accessor. More... | |
| bool | isOutOfMemory (void) const |
| Accessor. More... | |
| void | addUnwindInfo (CharCptr unwindInfo) |
| Append unwind information to the Exception. More... | |
| void | setThreadFatalSeverity (void) |
| Change the severity to Severity::THREADFATAL. | |
| void | setProcessFatalSeverity (void) |
| Change the severity to Severity::PROCESSFATAL. | |
| void | setThreadTerminateSeverity (void) |
| Change the severity to Severity::THREADTERMINATE. More... | |
| void | setProcessTerminateSeverity (void) |
| Change the severity to Severity::PROCESSTERMINATE. More... | |
Protected Methods | |
| Exception (void) | |
| Exceptions must have a reason. More... | |
| Exception (CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false) | |
| Exception constructor for use by derivations. | |
| void | setWhy (const std::string &) |
| Changes the exception reason. | |
| void | setWhy (CharCptr) |
| Changes the exception reason. | |
It is provided to support a rich base from which domain Exceptions may derive.
|
|
Exception Severity States.
|
|
||||||||||||||||||||||||
|
Default Constructor.
|
|
|
Copy constructor.
|
|
|
Exceptions must have a reason. Default constructor is not allowed. |
|
|
Append unwind information to the Exception. Clients should use this service to identify themselves and specify any changes to severity. |
|
|
Accessor.
|
|
|
Accessor.
|
|
|
Accessor.
|
|
|
Accessor.
|
|
|
Accessor.
|
|
|
Accessor.
|
|
|
Assignment operator overload.
|
|
|
Comparisson operator overload.
|
|
|
Change the severity to Severity::PROCESSTERMINATE. This is useful to the catcher that the process should exit |
|
|
Change the severity to Severity::THREADTERMINATE. This is useful to the catcher that the thread should be cleaned up. |