NCBI C++ ToolKit
|
Search Toolkit Book for CParseTemplException
CParseTemplException –. More...
#include <corelib/ncbistr.hpp>
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 CException * | x_Clone (void) const override |
Helper clone method. More... | |
Private Attributes | |
string::size_type | m_Pos |
Error position. More... | |
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.
Definition at line 4395 of file ncbistr.hpp.