#include <Cerr_ReportError.h>
Public Member Functions | |
ReportError () | |
ReportError (const ReportError &) | |
virtual | ~ReportError () |
const ReportError & | operator= (const ReportError &) |
bool | operator== (ReportError &) |
bool | operator!= (ReportError &) |
bool | operator< (ReportError &) |
ReportError * | Duplicate () |
virtual dtRtnStatus | ErrorPassthrough (dtSTRING const *, dtSMALL, dtSMALL, dtSTRING const *,...) |
dtSMALL | GetErrorCode () |
dtSMALL | GetErrorLevel () |
dtSTRING const * | GetErrorLocation () |
dtSTRING const * | GetErrorMessage () |
ReportError * | GetErrorState () |
dtRtnStatus | GetErrorStatus () |
const dtBOOLEAN | HasError () |
const dtBOOLEAN | IsErrorLoggingEnabled () |
void | ResetError () |
void | SetErrorCode (dtSMALL) |
void | SetErrorLevel (dtSMALL) |
void | SetErrorLocation (dtSTRING const *) |
void | SetErrorLoggingEnabled (const dtBOOLEAN) |
void | SetErrorMessage (dtSTRING const *,...) |
void | SetErrorMessage (std::string const) |
void | SetErrorState (const ReportError *) |
void | SetErrorState (const ReportError &) |
void | SetErrorStatus (dtRtnStatus) |
Simple class to help with reporting errors. It will usually be publicly derived from, and used as the implementation of SetErrorText, Error, etc methods.
A class that wishes to hold an error message and error code without reporting errors directly can use this class but should not call the error/passthrough methods, or report error.
dbSpaces::error::ReportError::ReportError | ( | ) |
ReportError default constructor.
dbSpaces::error::ReportError::ReportError | ( | const ReportError & | ) |
ReportError constructor using an existing ReportError object.
|
virtual |
ReportError destructor.
ReportError * dbSpaces::error::ReportError::Duplicate | ( | ) |
|
virtual |
As Error(), but takes a va_list from a method that took '...' itself.
dtSMALL dbSpaces::error::ReportError::GetErrorCode | ( | ) |
dtSMALL dbSpaces::error::ReportError::GetErrorLevel | ( | ) |
dtSTRING const * dbSpaces::error::ReportError::GetErrorLocation | ( | ) |
dtSTRING const * dbSpaces::error::ReportError::GetErrorMessage | ( | ) |
ReportError * dbSpaces::error::ReportError::GetErrorState | ( | ) |
dtRtnStatus dbSpaces::error::ReportError::GetErrorStatus | ( | ) |
const dtBOOLEAN dbSpaces::error::ReportError::HasError | ( | ) |
Check if the ReportError
object has an error state.
const dtBOOLEAN dbSpaces::error::ReportError::IsErrorLoggingEnabled | ( | ) |
Is error logging to the system log enabled?
@retrun TRUE if enabled, otherwise FALSE.
bool dbSpaces::error::ReportError::operator!= | ( | ReportError & | ) |
Not equals operator Checks if the error codes are not the same.
bool dbSpaces::error::ReportError::operator< | ( | ReportError & | ) |
Less than operator Checks if the error codes are less than each other.
const ReportError & dbSpaces::error::ReportError::operator= | ( | const ReportError & | ) |
Assignment operator
bool dbSpaces::error::ReportError::operator== | ( | ReportError & | ) |
Equals operator Checks if the error codes are the same.
void dbSpaces::error::ReportError::ResetError | ( | ) |
Clear the error to an non-error state.
void dbSpaces::error::ReportError::SetErrorCode | ( | dtSMALL | ) |
Set the error code for the ReportError
object.
errorCode | - the error code. |
void dbSpaces::error::ReportError::SetErrorLevel | ( | dtSMALL | ) |
Set the error level for the ReportError
object.
errorLevel | - the error level. |
void dbSpaces::error::ReportError::SetErrorLocation | ( | dtSTRING const * | ) |
Set the error location for the ReportError
object.
errorLocation | - the error location. |
void dbSpaces::error::ReportError::SetErrorLoggingEnabled | ( | const | dtBOOLEAN | ) |
Set whether errors are written to the system log. The default is enabled.
state | - TRUE or FALSE. |
void dbSpaces::error::ReportError::SetErrorMessage | ( | dtSTRING const * | , |
... | |||
) |
Set the error message for the ReportError
object.
errorMessage | - the error message format string. |
argPtr | - variable argument list. |
void dbSpaces::error::ReportError::SetErrorMessage | ( | std::string const | ) |
Set the error message for the ReportError
object.
errorMessage | - the error message. |
void dbSpaces::error::ReportError::SetErrorState | ( | const ReportError & | ) |
Set the error state using another ReportError
object.
errorState | - the ReportError object. |
void dbSpaces::error::ReportError::SetErrorState | ( | const ReportError * | ) |
Set the error state using another ReportError
object.
error | - the ReportError object |
void dbSpaces::error::ReportError::SetErrorStatus | ( | dtRtnStatus | ) |
Set the error status for the ReportError
object.
errorStatus | - the error status. |