Public Member Functions | Protected Member Functions | Private Attributes

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

#include <ivderror.h>

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

List of all members.

Public Member Functions

 ivd_DFError (const int a_ivdErr, UInt32_t a_blockOffset, const string &a_context="", bool a_logError=false) throw ()
 ivd_DFError (const int a_ivdErr, UInt32_t a_blockOffset, const string &a_context, const string &a_detailed, bool a_logError=false) throw ()
virtual ~ivd_DFError () throw ()
UInt32_t GetBlockOffset () const

Protected Member Functions

virtual string GetErrorText () const
 Member function to supply ivd_Exception::m_errorText.

Private Attributes

 log_CLASSID_m
UInt32_t m_blockOffset

Detailed Description

Author:
Matej Kenda, HERMES SoftLab
See also:
ivd_Error See also Description of the internal data format

ivd_DFError is a specialised exception of ivd_Error. It holds offset of last known good data block so that the catcher perform any action necessary to deal with the invalid data format.

Definition at line 248 of file ivderror.h.


Constructor & Destructor Documentation

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

Definition at line 60 of file ivd_dferror.cpp.

References s_className.

    : ivd_Error(a_ivdErr, a_context, a_logError),
      m_blockOffset(a_blockOffset) {

    FormatText(ivd_DFError::s_className);
}

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

Definition at line 71 of file ivd_dferror.cpp.

References s_className.

    : ivd_Error(a_ivdErr, a_context, a_detail, a_logError),
      m_blockOffset(a_blockOffset) {

    FormatText(ivd_DFError::s_className);
}

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

Definition at line 83 of file ivd_dferror.cpp.

                                  {
}


Member Function Documentation

UInt32_t ivd_DFError::GetBlockOffset (  )  const [inline]

Definition at line 266 of file ivderror.h.

{ return m_blockOffset; };

string ivd_DFError::GetErrorText (  )  const [protected, virtual]

Member function to supply ivd_Exception::m_errorText.

Reimplemented from ivd_Error.

Definition at line 86 of file ivd_dferror.cpp.

References ivd_GetErrorText(), m_blockOffset, and ivd_BaseException::m_error.

                                       {
    ostringstream sstr;
    sstr
        << ivd_GetErrorText(m_error)
        << " Block offset: " << m_blockOffset;

    return sstr.str();
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from ivd_Error.

Definition at line 272 of file ivderror.h.

Definition at line 274 of file ivderror.h.

Referenced by GetErrorText().


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