#include <ivderror.h>


ivd_Error is a normal way to report errors to a method caller.
Such a situation can be detected from an system error or invalid contents of a file etc..
ivd_Error::GetErrorText() calls ivd_GetErrorText() function to get textual description of an IVD error code.
IVD error codes are defined in ivd_ErrorCode_e and described in g_errorCodeTable.
See example in ivd_SysError.
Definition at line 204 of file ivderror.h.
Public Member Functions | |
| ivd_Error (const int a_ivdErr, const string &a_context="", bool a_logError=false) throw () | |
| ivd_Error (const int a_ivdErr, const string &a_context, const string &a_detailed, bool a_logError=false) throw () | |
| virtual | ~ivd_Error () throw () |
Protected Member Functions | |
| virtual string | GetErrorText () const |
| Member function to supply ivd_Exception::m_errorText. | |
Private Attributes | |
| log_CLASSID_m | |
| ivd_Error::ivd_Error | ( | const int | a_ivdErr, | |
| const string & | a_context = "", |
|||
| bool | a_logError = false | |||
| ) | throw () |
Definition at line 56 of file ivd_error.cpp.
References s_className.
00057 : ivd_Exception(a_ivdErr, a_context, a_logError) { 00058 00059 FormatText(s_className); 00060 }
| ivd_Error::ivd_Error | ( | const int | a_ivdErr, | |
| const string & | a_context, | |||
| const string & | a_detailed, | |||
| bool | a_logError = false | |||
| ) | throw () |
Definition at line 62 of file ivd_error.cpp.
References s_className.
00066 : ivd_Exception(a_ivdErr, a_context, a_detail, a_logError) { 00067 00068 FormatText(s_className); 00069 }
| ivd_Error::~ivd_Error | ( | ) | throw () [virtual] |
| string ivd_Error::GetErrorText | ( | ) | const [protected, virtual] |
Member function to supply ivd_Exception::m_errorText.
Reimplemented from ivd_BaseException.
Reimplemented in ivd_DFError.
Definition at line 74 of file ivd_error.cpp.
References ivd_GetErrorText(), and ivd_BaseException::m_error.
00074 { 00075 return ivd_GetErrorText(m_error); 00076 }

ivd_Error::log_CLASSID_m [private] |
Reimplemented from ivd_Exception.
Reimplemented in ivd_DFError.
Definition at line 224 of file ivderror.h.
1.5.6