EpcTools
An event based multi-threaded C++ development framework.
|
#include <etbasic.h>
Public Member Functions | |
EThreadError_UnableToInitialize () | |
![]() | |
EError () | |
Default constructor. More... | |
EError (Severity eSeverity, cpStr pszText=NULL) | |
Additonal constructor. More... | |
EError (Severity eSeverity, Dword err, cpStr pszText=NULL) | |
Additonal constructor. More... | |
EError (Severity eSeverity, const std::string &txt) | |
Additonal constructor. More... | |
EError (Severity eSeverity, Dword err, const std::string &txt) | |
Additonal constructor. More... | |
EError (const EError &val) | |
Copy constructor. More... | |
EError & | operator= (const EError &val) |
Assignment operator. More... | |
operator cpStr () | |
The const char* extractor. More... | |
EError & | copy (const EError &val) |
Copies the contents of the specified object to this object. More... | |
virtual const cpStr | Name () const |
Returns the name of this object. More... | |
Void | clear () |
Clears the current contents of this error object. More... | |
cpStr | getText () |
Returns the text associated with this error. More... | |
Void | setText (cpStr pszText) |
Sets the text associated with this error. More... | |
Void | setTextf (cpStr pszFormat,...) |
Sets the text associated with this error. More... | |
Void | appendText (cpStr pszText) |
appends the specified text to the current text of this error. More... | |
Void | appendTextf (cpStr pszText,...) |
appends the specified text to the current error text using a printf style format string and parameters. More... | |
Void | setSeverity (Severity eSeverity) |
Sets the severity level of this error object. More... | |
Void | setSevere () |
Sets the severity level of this error object to "Error". More... | |
Void | setWarning () |
Sets the severity level of this error object to "Warning". More... | |
Void | setInfo () |
Sets the severity level of this error object to "Info". More... | |
Bool | isSevere () |
Returns True if the severity is "Error". More... | |
Bool | isWarning () |
Returns True if the severity is "Warning". More... | |
Bool | isInfo () |
Returns True if the severity is "Info". More... | |
Bool | isError () |
Returns True if the severity is "Error". More... | |
Bool | isErrorOrWarning () |
Returns True if the severity is "Error" or "Warning". More... | |
Severity | getSeverity () |
Returns the current severity setting of this error object. More... | |
cpStr | getSeverityText () |
Returns the text based on the current error object's severity. More... | |
Dword | getLastOsError () |
Returns the current value of m_dwError. More... | |
Void | setLastOsError (Dword dwError=-1) |
Sets the value of m_dwError. More... | |
Void | appendLastOsError (Dword dwError=-1) |
Sets the value of m_dwError and appends the text description of the error to the current error text. More... | |
virtual const char * | what () const throw () |
The overloaded definition of the std::exception::what() method. More... | |
Additional Inherited Members | |
![]() | |
enum | Severity { Info, Warning, Error } |
Error severity levels. More... | |
![]() | |
static cpStr | getSeverityText (Severity eSeverity) |
Returns the text asociated with the specified severity code. More... | |
static cpStr | getError (Int nError, EErrorMapEntry *pErrors) |
Returns a description for the specified application error code. More... | |
![]() | |
Dword | m_dwError |
The unsigned long error code (if appropriate) More... | |
Severity | m_eSeverity |
Represents the severity of the error. More... | |
EThreadError_UnableToInitialize::EThreadError_UnableToInitialize | ( | ) |