|
Public Member Functions |
|
| HError (ErrCode ec, StringPtr pstrFile, uint32 uLine) |
| ErrCode | Reset (void) |
| | Clears the error information.
|
| virtual const char * | what (void) const throw () |
| | Returns the error information as a readable string.
|
| ErrCode | SetInfo (ErrCode ec, StringPtr pstrFile, uint32 uLine, bool bNotify) |
| | Sets the error information.
|
| bool | IsError (void) const |
| | Returns true if this really is an error.
|
|
| operator ErrCode (void) const |
Static Public Member Functions |
| static void | Throw (ErrCode ec, StringPtr pstrFile, uint32 uLine) throw () |
| | Sets information about the most recent error.
|
| static HError & | GetLastError (void) |
| | Returns the error object.
|
| static ErrCode | Set (ErrCode ec, StringPtr pstrFile, uint32 uLine) |
| | Sets information about the most recent error.
|
| static ErrCode | SetSilent (ErrCode ec, StringPtr pstrFile, uint32 uLine) |
| | Sets information about the most recent error.
|
| static ErrCode | NoError (void) |
| | Clears the last error.
|
Protected Attributes |
|
ErrCode | m_ec |
| | Numeric error code, or NO_ERROR (zero).
|
|
StringPtr | m_pstrFile |
| | Ptr to source file (__FILE__).
|
|
uint32 | m_uLine |
| | Line number in source file (__LINE__).
|
Static Protected Attributes |
|
static HError | theErr |
| | Global error instance.
|