1 #if !defined (__EXCEPTION_HPP)
2 #define __EXCEPTION_HPP
24 #if !defined IN_COMMON_HPP
25 #error except.hpp is included by common.hpp only.
38 DECLARE_CLASS( Exception );
42 DECLARE_TYPE( Dword, LineNum );
83 Severity severity = Exception::CONTINUABLE,
84 bool outOfMemory =
false
128 const std::string &
getFile(
void )
const;
136 LineNumCref
getLine(
void )
const;
143 const std::string &
getWhy(
void )
const;
157 const std::string &
getUnwind(
void )
const;
165 {
return theOutOfMemoryFlag;}
219 Severity severity = Exception::CONTINUABLE,
220 bool outOfMemory =
false
225 void setWhy(
const std::string & );
238 std::string theReason;
251 std::string theUnwindInfo;
259 bool theOutOfMemoryFlag;
265 #endif // !defined __EXCEPTION_HPP
Exception may prove to be thread fatal.
Definition: Exception.hpp:63
LineNumCref getLine(void) const
Accessor.
Definition: Exception.cpp:144
bool operator==(ExceptionCref otherRef)
Comparisson operator overload.
Definition: Exception.cpp:134
virtual ~Exception(void)
Virtual Destructor.
Definition: Exception.cpp:102
void addUnwindInfo(CharCptr unwindInfo)
Append unwind information to the Exception.
Definition: Exception.cpp:165
void setThreadFatalSeverity(void)
Change the severity to Severity::THREADFATAL.
Definition: Exception.cpp:178
const std::string & getWhy(void) const
Accessor.
Definition: Exception.cpp:149
System should kill thread.
Definition: Exception.hpp:65
void setThreadTerminateSeverity(void)
Change the severity to Severity::THREADTERMINATE.
Definition: Exception.cpp:203
Exception(void)
Exceptions must have a reason.
Definition: Exception.cpp:93
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
void setWhy(const std::string &)
Changes the exception reason.
Definition: Exception.cpp:227
Severity
Exception Severity States.
Definition: Exception.hpp:59
ExceptionRef operator=(ExceptionCref otherRef)
Assignment operator overload.
Definition: Exception.cpp:111
const Severity & getSeverity(void) const
Accessor.
Definition: Exception.cpp:154
Exception is the base exception class used in the CoreLinux++ libraries.
Definition: Exception.hpp:51
const std::string & getFile(void) const
Accessor.
Definition: Exception.cpp:139
Exception may prove to be process fatal.
Definition: Exception.hpp:64
const std::string & getUnwind(void) const
Accessor.
Definition: Exception.cpp:160
void setProcessTerminateSeverity(void)
Change the severity to Severity::PROCESSTERMINATE.
Definition: Exception.cpp:215
bool isOutOfMemory(void) const
Accessor.
Definition: Exception.hpp:164
System can continue processing.
Definition: Exception.hpp:62
void setProcessFatalSeverity(void)
Change the severity to Severity::PROCESSFATAL.
Definition: Exception.cpp:191