#include <acserrLegacy.h>
Public Member Functions | |
ACSError () | |
ACSError (const char *file, int line) | |
ACSError (const char *file, int line, const char *routine) | |
ACSError (const ACSErr::ErrorTrace &errortrace) | |
ACSError (ACSErr::ErrorTrace &errortrace) | |
ACSError (const char *file, int line, ACSErr::ErrorTrace *errortrace, bool release=1) | |
ACSError (ACSErr::ErrorTrace *errortrace, bool release=1) | |
ACSError (const char *file, int line, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY) | |
ACSError (const char *file, int line, ACSError &err, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY) | |
ACSError (const char *file, int line, ACSError *err, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY, bool release=1) | |
ACSError (ACSErr::ACSException &exception) | |
ACSError (const char *file, int line, ACSErr::ACSException &pex, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY) | |
ACSError (const char *file, int line, ACSErr::ErrorTrace &pc, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY) | |
~ACSError () | |
ACSErr::ErrorTrace & | getErrorTrace () |
ACSErr::ErrorTrace * | returnErrorTrace (bool deletion=true) |
ACSErr::ErrorTrace * | getNext () |
ACSErr::ErrorTrace * | top () |
void | log () |
bool | isOK () |
void | addData (const char *name, const char *value) |
template<class T> void | addData (const char *name, T value) |
char * | getDescription () |
char * | getFileName () |
CORBA::ULong | getLineNumber () |
char * | getRoutine () |
char * | getHostName () |
char * | getProcess () |
char * | getThread () |
CORBA::ULongLong | getTimeStamp () |
ACSErr::ErrorCode | getErrorCode () |
ACSErr::ACSErrType | getErrorType () |
ACSErr::Severity | getSeverity () |
unsigned int | getDepth () |
void | setTimeStamp (CORBA::ULongLong time) |
void | setFileName (const char *fn) |
void | setLineNumber (CORBA::ULong ln) |
void | setError (ACSErr::ACSErrType ty, ACSErr::ErrorCode ec) |
void | setSeverity (ACSErr::Severity severity) |
Static Public Member Functions | |
char * | getDescription (ACSErr::ACSErrType et, ACSErr::ErrorCode ec) |
void | hostName (const char *hn) |
void | processName (const char *pn) |
void | setProcessName (const char *pn) |
ACSErr::ErrorTrace | createErrorTrace (const char *file, int line, ACSError &er) |
ACSErr::ErrorTrace | createErrorTrace (const char *file, int line, ACSErr::ACSException &pex, ACSErr::ACSErrType et, ACSErr::ErrorCode ec, const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY) |
ACSErr::ErrorTrace | createErrorTrace (const char *file, int line, ACSErr::ACSErrType et, ACSErr::ErrorCode ec,\const char *routine, ACSErr::Severity severity=DEFAULT_SEVERITY) |
bool | init (int argc, char *argv[]) |
bool | init (CORBA::ORB_ptr _orb) |
bool | init () |
bool | isInit () |
void | done () |
Protected Member Functions | |
void | log (ACSErr::ErrorTrace *c, int level) |
void | fill (ACSErr::ACSErrType et, ACSErr::ErrorCode ec, ACSErr::Severity severity, const char *file, int line, const char *routine) |
ACS::Time | getTime () |
Static Protected Member Functions | |
bool | initLog (CORBA::ORB_ptr _orb) |
Protected Attributes | |
ACSErr::ErrorTrace | errorTrace |
ACSErr::ErrorTrace * | current |
unsigned int | depth |
Static Protected Attributes | |
bool | initialized |
CORBA::ORB_var | orb |
std::unexpected_handler | m_oldUnexpected |
std::terminate_handler | m_oldTerminate |
const ACSErr::ACSErrType | ACSErrTypeOK |
const ACSErr::ErrorCode | ACSErrOK |
|
Constructor for creating "no error" object which does not contain runtime and source information. Instead can be used macro ACS_ERROR(). It just set error code and type to 0 (e.g. ACSErrOK, ACSErrTypeOK).
|
|
Constructor for creating "no error" object which does not contain runtime and source information. Instead can be used macro ACS_ERROR(). It just set error code and type to 0 (e.g. ACSErrOK, ACSErrTypeOK). This constructor is functional equal to constructor ACSError () and it is there just that macro ACS_ERROR () can be used.
|
|
Constructor for creating "no error" object. Instead can be used macro ACS_ERROR(ro).
|
|
Constructor for creating error object from errortrace.
|
|
Constructor for creating error object from errortrace.
|
|
Constructor for creating error object from pointer errortrace. It makes copy of errortrace.
|
|
Constructor for creating error object from pointer errortrace. It makes copy of errortrace.
|
|
Constructor for creating error object. Macro ACS_ERROR(et, ec, ro) should be used instead.
|
|
Constructor for creating error object which contains also trace to previous error(s). Macro ACS_ERROR(perr, et, ec, ro) should be used instead.
|
|
Constructor for creating error object which contains also trace to previous error(s). Macro ACS_ERROR(perr, et, ec, ro) should be used instead.
|
|
Constructor for creating error object from IDL exception (=ACSException).
|
|
Constructor for creating error object which contains also trace to previous error(s) from ACSException object. Macro ACS_ERROR(pe, ed, en, ro) should be used instead.
|
|
Constructor for creating error object which contains also trace to previous error(s) from errortrace structure (ErrorTrace). Macro ACS_ERROR(pe, ed, en, ro) should be used instead.
|
|
Destructor |
|
Adds data (pair of name-value)
|
|
Adds data to the current error
|
|
|
|
|
|
|
|
|
|
Fills errortrace structure
|
|
Returns depth of error stack
|
|
Returns description of the error
|
|
Returns copy of description of current error. User have to take care of releasing it!
|
|
Returns error code
|
|
Gets reference to errortrace structure. User must take care for makeing copy of structure or should use method returnErrorTrace
|
|
Returns error type
|
|
Returns file name information of the error
|
|
Returns host name information of the error
|
|
Returns line number information of the error
|
|
Moves to the next errortrace element and return its pointer (not copy). If there is no next errortrace element NULL will be returned
|
|
Retruns process information of the error. Its name or process ID.
|
|
Returns routine information of tehe error
|
|
Returns error severity |
|
Returns thread information of the error. The name of thread or its ID.
|
|
Returns time in 100th of nano seconds needed for error time stamp
|
|
Returns time stamp of the error in 100th of nanoseconds.
|
|
Sets host name
|
|
|
|
|
|
|
|
|
|
|
|
Returns true if errortrace does not represent error otherwise false.
|
|
Logs single error
|
|
Logs errortrace information into logging system |
|
|
|
Returns copy of errortrace structure (and delete ACSError object)
|
|
Sets current error code
|
|
Sets file name
|
|
Sets line number
|
|
Sets process name
|
|
Sets error severity
|
|
Sets time stamp of the error in 100th of nanoseconds. time CORBA::ULongLong time stamp |
|
Moves to the first (top) errortrace element and return its pointer (not copy).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|