#include <ivderror.h>


These exceptions are caught by main() function only, because ivd_InternalError means data corruption or a bug that must be resolved immediatelly.
Use IVD error codes (same as for ivd_Error). Note that log entry is created by default for ivd_InternalError.
See example in ivd_SysError.
Definition at line 147 of file ivderror.h.
Public Member Functions | |
| ivd_InternalError (const int a_ivdErr, const string &a_context="", bool a_logError=true) throw () | |
| ivd_InternalError (const int a_ivdErr, const string &a_context, const string &a_detailed, bool a_logError=true) throw () | |
| virtual | ~ivd_InternalError () throw () |
Protected Member Functions | |
| virtual string | GetErrorText () const |
| Member function to supply ivd_Exception::m_errorText. | |
Private Attributes | |
| log_CLASSID_m | |
| ivd_InternalError::ivd_InternalError | ( | const int | a_ivdErr, | |
| const string & | a_context = "", |
|||
| bool | a_logError = true | |||
| ) | throw () |
Definition at line 60 of file ivd_internalerror.cpp.
References evt_CRITICAL, log_WriteEvent(), and s_className.
00062 : ivd_BaseException(a_ivdErr, a_context, true) { 00063 00064 FormatText(s_className); 00065 00066 // Write the error to the ivd.log 00067 ostringstream sstr; 00068 sstr 00069 << "Internal error. Contact support. " 00070 << "(" << this->GetFriendly() << ")."; 00071 00072 log_WriteEvent(evt_CRITICAL, sstr.str()); 00073 00074 abort(); 00075 }

| ivd_InternalError::ivd_InternalError | ( | const int | a_ivdErr, | |
| const string & | a_context, | |||
| const string & | a_detailed, | |||
| bool | a_logError = true | |||
| ) | throw () |
Definition at line 77 of file ivd_internalerror.cpp.
References evt_CRITICAL, log_WriteEvent(), and s_className.
00082 : ivd_BaseException(a_ivdErr, a_context, a_detailed, true) { 00083 00084 FormatText(s_className); 00085 00086 // Write the error to the ivd.log 00087 ostringstream sstr; 00088 sstr 00089 << "Internal error. Contact support. " 00090 << "(" << this->GetFriendly() << ")."; 00091 00092 log_WriteEvent(evt_CRITICAL, sstr.str()); 00093 00094 abort(); 00095 }

| ivd_InternalError::~ivd_InternalError | ( | ) | throw () [virtual] |
| string ivd_InternalError::GetErrorText | ( | ) | const [protected, virtual] |
Member function to supply ivd_Exception::m_errorText.
Reimplemented from ivd_BaseException.
Definition at line 100 of file ivd_internalerror.cpp.
References ivd_GetErrorText(), and ivd_BaseException::m_error.
00100 { 00101 return ivd_GetErrorText(m_error); 00102 }

ivd_InternalError::log_CLASSID_m [private] |
1.5.6