CoreLinux++
0.4.32
|
ThreadException is the base exception type for Thread. More...
#include <ThreadException.hpp>
Public Member Functions | |
ThreadException (CharCptr why, CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false) | |
Default Constructor. More... | |
ThreadException (CharCptr file, LineNum line, Severity severity=Exception::CONTINUABLE, bool outOfMemory=false) | |
Default Constructor. More... | |
ThreadException (ThreadExceptionCref) | |
Copy constructor. More... | |
virtual | ~ThreadException (void) |
Virtual Destructor. | |
ThreadExceptionRef | operator= (ThreadExceptionCref) |
Assignment operator overload. More... | |
bool | operator== (ThreadExceptionCref) const |
Equality operator overload. More... | |
![]() | |
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 Member Functions | |
ThreadException (void) | |
ThreadException must have at least a location. More... | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
enum | Severity { CONTINUABLE = 1, THREADFATAL, PROCESSFATAL, THREADTERMINATE, PROCESSTERMINATE } |
Exception Severity States. More... | |
ThreadException is the base exception type for Thread.
All Thread exceptions derive from this.
corelinux::ThreadException::ThreadException | ( | CharCptr | why, |
CharCptr | file, | ||
LineNum | line, | ||
Severity | severity = Exception::CONTINUABLE , |
||
bool | outOfMemory = false |
||
) |
Default Constructor.
why | describes why the exception was thrown |
file | The source module throwing the exception |
line | The line of source throwing the exception |
severity | The Exception::Severity of the Exception |
outOfMemory | An out of memory indicator |
corelinux::ThreadException::ThreadException | ( | CharCptr | file, |
LineNum | line, | ||
Severity | severity = Exception::CONTINUABLE , |
||
bool | outOfMemory = false |
||
) |
Default Constructor.
file | The source module throwing the exception |
line | The line of source throwing the exception |
severity | The Exception::Severity of the Exception |
outOfMemory | An out of memory indicator |
References ThreadException().
corelinux::ThreadException::ThreadException | ( | ThreadExceptionCref | aRef | ) |
Copy constructor.
ThreadException | const reference |
|
protected |
ThreadException must have at least a location.
Default constructor is not allowed.
Referenced by ThreadException().
ThreadExceptionRef corelinux::ThreadException::operator= | ( | ThreadExceptionCref | aRef | ) |
Assignment operator overload.
ThreadException | const reference |
References corelinux::Exception::operator=().
Referenced by corelinux::InvalidThreadException::operator=().
bool corelinux::ThreadException::operator== | ( | ThreadExceptionCref | aRef | ) | const |
Equality operator overload.
ThreadException | const reference |