NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CParseTemplException< TBase > Class Template Reference

Search Toolkit Book for CParseTemplException

CParseTemplException –. More...

#include <corelib/ncbistr.hpp>

+ Inheritance diagram for CParseTemplException< TBase >:
+ Collaboration diagram for CParseTemplException< TBase >:

Public Types

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

Public Member Functions

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

Protected Member Functions

 CParseTemplException (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, string::size_type pos, EDiagSev severity, CException::TFlags flags)
 
 CParseTemplException (void)
 Constructor. More...
 
virtual const CExceptionx_Clone (void) const override
 Helper clone method. More...
 

Private Attributes

string::size_type m_Pos
 Error position. More...
 

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 positional parameter be supplied along with the description message.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4396 of file ncbistr.hpp.


The documentation for this class was generated from the following file:
Modified on Sun May 19 04:42:25 2024 by modify_doxy.py rev. 669887