CParseTemplException< TBase > Class Template Reference
[String Manipulations]

Search Toolkit Book for CParseTemplException

#include <ncbistr.hpp>

Inheritance diagram for CParseTemplException< TBase >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class TBase>
class CParseTemplException< TBase >

CParseTemplException --.

Define template class for parsing exception. This class is used to define exceptions for complex parsing tasks and includes an additional m_Pos data member. The constructor requires that an additional postional parameter be supplied along with the description message.

Definition at line 2594 of file ncbistr.hpp.

Public Types

enum  EErrCode { eErr }
 Error types that for exception class. More...

Public Member Functions

virtual const char * GetErrCodeString (void) const
 Translate from the error code value to its string representation.
 CParseTemplException (const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, string::size_type pos, EDiagSev severity=eDiag_Error)
 Constructor.
 CParseTemplException (const CParseTemplException< TBase > &other)
 Constructor.
virtual ~CParseTemplException (void) throw ()
 Destructor.
virtual void ReportExtra (ostream &out) const
 Report error position.
virtual const char * GetType (void) const
 Get exception class type.
EErrCode GetErrCode (void) const
 Get error code.
string::size_type GetPos (void) const throw ()
 Get error position.

Protected Member Functions

 CParseTemplException (void)
 Constructor.
virtual const CExceptionx_Clone (void) const
 Helper clone method.

Private Attributes

string::size_type m_Pos
 Error position.


Member Enumeration Documentation

template<class TBase>
enum CParseTemplException::EErrCode
 

Error types that for exception class.

Enumerator:
eErr  Generic error.

Definition at line 2598 of file ncbistr.hpp.


Constructor & Destructor Documentation

template<class TBase>
CParseTemplException< TBase >::CParseTemplException const CDiagCompileInfo info,
const CException prev_exception,
EErrCode  err_code,
const string &  message,
string::size_type  pos,
EDiagSev  severity = eDiag_Error
[inline]
 

Constructor.

Report "pos" along with "what".

Definition at line 2614 of file ncbistr.hpp.

template<class TBase>
CParseTemplException< TBase >::CParseTemplException const CParseTemplException< TBase > &  other  )  [inline]
 

Constructor.

Definition at line 2631 of file ncbistr.hpp.

template<class TBase>
virtual CParseTemplException< TBase >::~CParseTemplException void   )  throw () [inline, virtual]
 

Destructor.

Definition at line 2639 of file ncbistr.hpp.

template<class TBase>
CParseTemplException< TBase >::CParseTemplException void   )  [inline, protected]
 

Constructor.

Definition at line 2667 of file ncbistr.hpp.


Member Function Documentation

template<class TBase>
EErrCode CParseTemplException< TBase >::GetErrCode void   )  const [inline]
 

Get error code.

Definition at line 2653 of file ncbistr.hpp.

Referenced by CFilteringArgs::ExtractAlgorithmOptions(), and oligofar::CSeqVecProcessor::Process().

template<class TBase>
virtual const char* CParseTemplException< TBase >::GetErrCodeString void   )  const [inline, virtual]
 

Translate from the error code value to its string representation.

Reimplemented in CCgiCookieException, CRegistryException, CStringException, CGeneralParseException, CSeqsetParseException, and CObjReaderParseException.

Definition at line 2603 of file ncbistr.hpp.

template<class TBase>
string::size_type CParseTemplException< TBase >::GetPos void   )  const throw () [inline]
 

Get error position.

Definition at line 2663 of file ncbistr.hpp.

Referenced by CCgiRequest::ParseEntries(), and CCgiRequest::ParseIndexes().

template<class TBase>
virtual const char* CParseTemplException< TBase >::GetType void   )  const [inline, virtual]
 

Get exception class type.

Definition at line 2650 of file ncbistr.hpp.

template<class TBase>
virtual void CParseTemplException< TBase >::ReportExtra ostream &  out  )  const [inline, virtual]
 

Report error position.

Definition at line 2642 of file ncbistr.hpp.

template<class TBase>
virtual const CException* CParseTemplException< TBase >::x_Clone void   )  const [inline, protected, virtual]
 

Helper clone method.

Definition at line 2673 of file ncbistr.hpp.


Member Data Documentation

template<class TBase>
string::size_type CParseTemplException< TBase >::m_Pos [private]
 

Error position.

Definition at line 2679 of file ncbistr.hpp.

Referenced by CParseTemplException< CSeqsetException >::CParseTemplException().


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 13:19:05 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:23:39 2009 by modify_doxy.py rev. 173732