AnimatLab  2
Test
StdUtils::CStdErrorInfo Class Reference

Information about the standard error. More...

#include <StdErrorInfo.h>

+ Inheritance diagram for StdUtils::CStdErrorInfo:
+ Collaboration diagram for StdUtils::CStdErrorInfo:

Public Member Functions

 CStdErrorInfo ()
 Default constructor. More...
 
 CStdErrorInfo (long lError, std::string strError, std::string strSourceFile, long lSourceLine)
 Constructor. More...
 
 ~CStdErrorInfo () throw ()
 Destructor. More...
 
virtual std::string Log ()
 Logs the error to the loggin mechanism. More...
 
virtual std::string StackTrace ()
 Gets the stack trace. More...
 
virtual const char * what () const throw ()
 Gets the error message. More...
 

Public Attributes

CStdArray< std::string > m_aryCallChain
 The call chain of the errorr.
 
long m_lError
 The error number.
 
long m_lSourceLine
 The source line code line where the error occurred.
 
std::string m_strError
 The error message.
 
std::string m_strSourceFile
 The source file name where the error occurred.
 

Detailed Description

Information about the standard error.

This is a standard exception type.

Author
dcofer
Date
5/3/2011

Definition at line 19 of file StdErrorInfo.h.

Constructor & Destructor Documentation

StdUtils::CStdErrorInfo::CStdErrorInfo ( )

Default constructor.

Author
dcofer
Date
5/3/2011

Definition at line 18 of file StdErrorInfo.cpp.

References m_lError, and m_lSourceLine.

StdUtils::CStdErrorInfo::CStdErrorInfo ( long  lError,
std::string  strError,
std::string  strSourceFile,
long  lSourceLine 
)

Constructor.

Author
dcofer
Date
5/3/2011
Parameters
lErrorThe error number.
strErrorThe error message.
strSourceFileThe source filename.
lSourceLineSource line number.

Definition at line 35 of file StdErrorInfo.cpp.

References m_lError, m_lSourceLine, m_strError, and m_strSourceFile.

StdUtils::CStdErrorInfo::~CStdErrorInfo ( )
throw (
)

Destructor.

Author
dcofer
Date
5/3/2011

Definition at line 49 of file StdErrorInfo.cpp.

References m_aryCallChain, and StdUtils::Std_TraceMsg().

+ Here is the call graph for this function:

Member Function Documentation

std::string StdUtils::CStdErrorInfo::Log ( )
virtual

Logs the error to the loggin mechanism.

Author
dcofer
Date
5/3/2011
Returns
.

Definition at line 68 of file StdErrorInfo.cpp.

References m_aryCallChain, m_lError, m_lSourceLine, m_strError, and m_strSourceFile.

std::string StdUtils::CStdErrorInfo::StackTrace ( )
virtual

Gets the stack trace.

Author
dcofer
Date
7/5/2011
Returns
stack trace std::string of the error.

Definition at line 87 of file StdErrorInfo.cpp.

References m_aryCallChain, m_lSourceLine, and m_strSourceFile.

virtual const char* StdUtils::CStdErrorInfo::what ( ) const
throw (
)
inlinevirtual

Gets the error message.

Author
dcofer
Date
5/3/2011
Returns
std::string error message.

Definition at line 51 of file StdErrorInfo.h.


The documentation for this class was generated from the following files: