Public Member Functions | Protected Member Functions | Private Attributes

ivd_Error Class Reference
[Common, basic classes, functions and types]

ivd_Error is thrown when an IVD erroneous situation is detected. More...

#include <ivderror.h>

Inheritance diagram for ivd_Error:
Inheritance graph
[legend]
Collaboration diagram for ivd_Error:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

ivd_Error is thrown when an IVD erroneous situation is detected.

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.

Author:
Matej Kenda, Hermes SoftLab
See also:
ivd_Exception
ivd_SysError
log_MARKLINE_m

Definition at line 219 of file ivderror.h.


Constructor & Destructor Documentation

ivd_Error::ivd_Error ( const int  a_ivdErr,
const string &  a_context = "",
bool  a_logError = false 
) throw ()

Definition at line 70 of file ivd_error.cpp.

References s_className.

    : ivd_Exception(a_ivdErr, a_context, a_logError)  {

    FormatText(s_className);
}

ivd_Error::ivd_Error ( const int  a_ivdErr,
const string &  a_context,
const string &  a_detailed,
bool  a_logError = false 
) throw ()

Definition at line 76 of file ivd_error.cpp.

References s_className.

    : ivd_Exception(a_ivdErr, a_context, a_detail, a_logError)  {

    FormatText(s_className);
}

ivd_Error::~ivd_Error (  )  throw () [virtual]

Definition at line 85 of file ivd_error.cpp.

                              {
}


Member Function Documentation

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 88 of file ivd_error.cpp.

References ivd_GetErrorText(), and ivd_BaseException::m_error.

                                     {
    return ivd_GetErrorText(m_error);
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from ivd_Exception.

Reimplemented in ivd_DFError.

Definition at line 239 of file ivderror.h.


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