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.


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 233 of file ivderror.h.


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

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 46 of file ivd_dferror.cpp.

References s_className.

00051     : ivd_Error(a_ivdErr, a_context, a_logError),
00052       m_blockOffset(a_blockOffset) {
00053 
00054     FormatText(ivd_DFError::s_className);
00055 }

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 57 of file ivd_dferror.cpp.

References s_className.

00063     : ivd_Error(a_ivdErr, a_context, a_detail, a_logError),
00064       m_blockOffset(a_blockOffset) {
00065 
00066     FormatText(ivd_DFError::s_className);
00067 }

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

Definition at line 69 of file ivd_dferror.cpp.

00069                                   {
00070 }


Member Function Documentation

UInt32_t ivd_DFError::GetBlockOffset (  )  const [inline]

Definition at line 251 of file ivderror.h.

00251 { 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 72 of file ivd_dferror.cpp.

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

00072                                        {
00073     ostringstream sstr;
00074     sstr
00075         << ivd_GetErrorText(m_error)
00076         << " Block offset: " << m_blockOffset;
00077 
00078     return sstr.str();
00079 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from ivd_Error.

Definition at line 257 of file ivderror.h.

Definition at line 259 of file ivderror.h.

Referenced by GetErrorText().


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

Generated on Mon Feb 27 19:41:23 2012 for OPENARCHIVE by  doxygen 1.5.6