NCBI C++ ToolKit
|
Search Toolkit Book for CObjReaderLineException
#include <objtools/readers/line_error.hpp>
Public Member Functions | |
virtual ILineError * | Clone (void) const |
Use instead of copy constructor, which is protected. More... | |
void | Throw (void) const |
this function to throw this object. More... | |
~CObjReaderLineException (void) noexcept | |
TErrCode | GetErrCode (void) const |
EProblem | Problem (void) const |
const std::string & | SeqId (void) const |
EDiagSev | Severity (void) const |
unsigned int | Line (void) const |
const TVecOfLines & | OtherLines (void) const |
const std::string & | FeatureName (void) const |
const std::string & | QualifierName (void) const |
const std::string & | QualifierValue (void) const |
const std::string & | ErrorMessage (void) const |
std::string | ProblemStr () const |
std::string | Message () const |
void | SetLineNumber (unsigned int uLineNumber) |
void | AddOtherLine (unsigned int uOtherLine) |
![]() | |
virtual | ~ILineError (void) noexcept |
std::string | SeverityStr (void) const |
virtual void | Write (CNcbiOstream &out) const |
virtual void | WriteAsXML (CNcbiOstream &out) const |
virtual string | GetText (void) const |
virtual EDiagSev | GetSeverity (void) const |
virtual int | GetCode (void) const |
virtual int | GetSubCode (void) const |
virtual void | Dump (CNcbiOstream &out) const |
virtual std::string | Compose (void) const |
virtual void | DumpAsXML (CNcbiOstream &out) const |
![]() | |
virtual | ~IObjtoolsMessage (void)=default |
![]() | |
virtual const char * | GetErrCodeString (void) const override |
Translate from the error code value to its string representation. More... | |
NCBI_EXCEPTION_DEFAULT2 (CObjReaderParseException, CParseTemplException< CObjReaderException >, std::string::size_type) | |
![]() | |
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< CObjReaderException > &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... | |
Static Public Member Functions | |
static CObjReaderLineException * | Create (EDiagSev eSeverity, unsigned int uLine, const std::string &strMessage, EProblem eProblem=eProblem_GeneralParsingError, const std::string &strSeqId=string(""), const std::string &strFeatureName=string(""), const std::string &strQualifierName=string(""), const std::string &strQualifierValue=string(""), CObjReaderLineException::EErrCode eErrCode=eFormat, const TVecOfLines &vecOfOtherLines=TVecOfLines()) |
Please use this instead of the constructor because the ctor is protected. More... | |
![]() | |
static std::string | ProblemStr (EProblem eProblem) |
Protected Member Functions | |
CObjReaderLineException (EDiagSev eSeverity, unsigned int uLine, const std::string &strMessage, EProblem eProblem=eProblem_GeneralParsingError, const std::string &strSeqId=string(""), const std::string &strFeatureName=string(""), const std::string &strQualifierName=string(""), const std::string &strQualifierValue=string(""), CObjReaderLineException::EErrCode eErrCode=eFormat, const TVecOfLines &vecOfOtherLines=TVecOfLines()) | |
protected instead of public. Please use the Create function instead. More... | |
CObjReaderLineException (const CObjReaderLineException &rhs) | |
Protected, so use Clone or Throw instead. More... | |
![]() | |
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... | |
Definition at line 609 of file line_error.hpp.
Definition at line 50 of file reader_exception.hpp.
|
inlinenoexcept |
Definition at line 644 of file line_error.hpp.
|
protected |
protected instead of public. Please use the Create function instead.
Definition at line 227 of file line_error.cpp.
|
protected |
Protected, so use Clone or Throw instead.
Definition at line 250 of file line_error.cpp.
References Severity().
|
inline |
Definition at line 677 of file line_error.hpp.
References m_vecOfOtherLines.
|
virtual |
Use instead of copy constructor, which is protected.
Reimplemented from ILineError.
Definition at line 215 of file line_error.cpp.
References CObjReaderLineException().
|
static |
Please use this instead of the constructor because the ctor is protected.
Definition at line 194 of file line_error.cpp.
References CObjReaderLineException().
Referenced by CGff2Record::AssignFromGff(), CIdMapper::Map(), CFastaReader::PostWarning(), CReaderBase::ProcessError(), CColumnarVCFReader::ReadData(), CColumnarVCFReader::ReadHeader(), CHgvsReader::ReadSeqAnnot(), CRepeatMaskerReader::ReadSeqAnnot(), CColumnarVCFReader::ReadVariantsForChrs(), CReaderMessageHandler::Report(), s_PostError(), s_PostWarning(), SpecNumber(), SpecType(), CColumnarVCFReader::x_GatherSampleColNames(), CSourceModParser::x_HandleBadModValue(), CSourceModParser::x_HandleUnkModValue(), CColumnarVCFReader::x_ProcessCriticalError(), CSourceModParser::x_ProcessError(), CColumnarVCFReader::x_ProcessError(), CColumnarVCFReader::x_ProcessHeaderLine(), CUCSCRegionReader::x_SetFeatureLocation(), CVcfReader::xNormalizeData(), CVcfReader::xParseData(), CGff3Reader::xParseFeature(), CVcfReader::xProcessMetaLineFilter(), CVcfReader::xProcessMetaLineFormat(), and CVcfReader::xProcessMetaLineInfo().
|
inlinevirtual |
Reimplemented from ILineError.
Definition at line 660 of file line_error.hpp.
References m_strErrorMessage.
|
inlinevirtual |
|
inline |
Definition at line 646 of file line_error.hpp.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from ILineError.
Definition at line 664 of file line_error.hpp.
References ctll::empty(), and ILineError::Message().
Referenced by CReaderBase::ProcessWarning(), and CColumnarVCFReader::x_ProcessWarning().
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented from ILineError.
Definition at line 263 of file line_error.cpp.
References m_strErrorMessage, and ILineError::ProblemStr().
|
inlinevirtual |
Implements ILineError.
Definition at line 657 of file line_error.hpp.
References m_strQualifierName.
|
inlinevirtual |
Implements ILineError.
Definition at line 658 of file line_error.hpp.
References m_strQualifierValue.
|
inlinevirtual |
|
inline |
Definition at line 672 of file line_error.hpp.
References m_uLineNumber.
Referenced by CReaderBase::ProcessError(), and CReaderBase::ProcessWarning().
|
inlinevirtual |
Reimplemented from ILineError.
Definition at line 653 of file line_error.hpp.
Referenced by CObjReaderLineException().
void CObjReaderLineException::Throw | ( | void | ) | const |
this function to throw this object.
Definition at line 221 of file line_error.cpp.
Referenced by CReaderBase::ProcessError(), CReaderBase::ProcessWarning(), CColumnarVCFReader::x_ProcessCriticalError(), CSourceModParser::x_ProcessError(), CColumnarVCFReader::x_ProcessError(), and CColumnarVCFReader::x_ProcessWarning().
|
protected |
Definition at line 683 of file line_error.hpp.
Referenced by Problem().
|
protected |
Definition at line 689 of file line_error.hpp.
Referenced by ErrorMessage(), and ProblemStr().
|
protected |
Definition at line 686 of file line_error.hpp.
Referenced by FeatureName().
|
protected |
Definition at line 687 of file line_error.hpp.
Referenced by QualifierName().
|
protected |
Definition at line 688 of file line_error.hpp.
Referenced by QualifierValue().
|
protected |
Definition at line 684 of file line_error.hpp.
Referenced by SeqId().
|
protected |
Definition at line 685 of file line_error.hpp.
Referenced by Line(), and SetLineNumber().
|
protected |
Definition at line 690 of file line_error.hpp.
Referenced by AddOtherLine(), and OtherLines().