NCBI C++ ToolKit
|
Search Toolkit Book for CLineError
#include <objtools/readers/line_error.hpp>
Public Member Functions | |
virtual ILineError * | Clone (void) const |
Use this because copy ctor is protected. More... | |
virtual | ~CLineError (void) noexcept |
void | Throw (void) const |
copy constructor is protected so please use this function to throw the object. More... | |
void | PatchLineNumber (unsigned int uLine) |
void | PatchErrorMessage (const string &errorMessage) |
void | AddOtherLine (unsigned int uOtherLine) |
EProblem | Problem (void) const |
virtual EDiagSev | Severity (void) const |
const std::string & | SeqId (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 |
virtual std::string | ProblemStr (void) const |
const std::string & | ErrorMessage (void) const |
Public Member Functions inherited from ILineError | |
virtual | ~ILineError (void) noexcept |
virtual string | Message () const |
string | SeverityStr () 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 |
Public Member Functions inherited from IObjtoolsMessage | |
virtual | ~IObjtoolsMessage (void)=default |
Static Public Member Functions | |
static CLineError * | Create (EProblem eProblem, EDiagSev eSeverity, const std::string &strSeqId, unsigned int uLine, const std::string &strFeatureName=string(""), const std::string &strQualifierName=string(""), const std::string &strQualifierValue=string(""), const std::string &strErrorMessage=string(""), const TVecOfLines &vecOfOtherLines=TVecOfLines()) |
Use this because the constructor is protected. More... | |
Static Public Member Functions inherited from ILineError | |
static string | ProblemStr (EProblem eProblem) |
Protected Member Functions | |
CLineError (EProblem eProblem, EDiagSev eSeverity, const std::string &strSeqId, unsigned int uLine, const std::string &strFeatureName, const std::string &strQualifierName, const std::string &strQualifierValue, const std::string &strErrorMessage, const TVecOfLines &m_vecOfOtherLine) | |
protected instead of public. Please use the Create function instead. More... | |
CLineError (const CLineError &rhs) | |
protected instead of public. More... | |
Definition at line 167 of file line_error.hpp.
|
inlinevirtualnoexcept |
Definition at line 190 of file line_error.hpp.
|
protected |
protected instead of public. Please use the Create function instead.
Definition at line 74 of file line_error.cpp.
Referenced by Clone().
|
protected |
protected instead of public.
Please use the Throw function to throw this exception and try to avoid using the copy constructor at all.
Definition at line 96 of file line_error.cpp.
|
inline |
Definition at line 207 of file line_error.hpp.
References m_vecOfOtherLines.
|
virtual |
Use this because copy ctor is protected.
Implements ILineError.
Definition at line 324 of file line_error.cpp.
References CLineError().
|
static |
Use this because the constructor is protected.
Definition at line 42 of file line_error.cpp.
Referenced by CReadUtil::AddGeneOntologyTerm(), g_LogGeneralParsingError(), CTbl2AsnApp::ProcessHugeFile(), CTAbleValApp::ProcessOneFile(), CTbl2AsnApp::Run(), CTAbleValApp::Run(), s_ReportDuplicateMods(), sParseGeneOntologyTerm(), sReportError(), and CMultiReader::xApplyTemplate().
|
inlinevirtual |
Reimplemented from ILineError.
Definition at line 245 of file line_error.hpp.
References m_strErrorMessage.
Referenced by ProblemStr().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 199 of file line_error.hpp.
References m_strErrorMessage.
|
inline |
Definition at line 196 of file line_error.hpp.
References m_uLine.
|
inlinevirtual |
Implements ILineError.
Definition at line 213 of file line_error.hpp.
References m_eProblem.
Referenced by ProblemStr().
|
inlinevirtual |
Reimplemented from ILineError.
Definition at line 237 of file line_error.hpp.
References ErrorMessage(), msg(), Problem(), and ILineError::ProblemStr().
|
inlinevirtual |
Implements ILineError.
Definition at line 231 of file line_error.hpp.
References m_strQualifierName.
|
inlinevirtual |
Implements ILineError.
Definition at line 234 of file line_error.hpp.
References m_strQualifierValue.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from ILineError.
Definition at line 216 of file line_error.hpp.
References m_eSeverity.
void CLineError::Throw | ( | void | ) | const |
copy constructor is protected so please use this function to throw the object.
Definition at line 67 of file line_error.cpp.
Referenced by CReaderBase::ProcessError(), and CReaderBase::ProcessWarning().
|
protected |
Definition at line 248 of file line_error.hpp.
Referenced by Problem().
|
protected |
Definition at line 249 of file line_error.hpp.
Referenced by Severity().
|
protected |
Definition at line 255 of file line_error.hpp.
Referenced by ErrorMessage(), and PatchErrorMessage().
|
protected |
Definition at line 252 of file line_error.hpp.
Referenced by FeatureName().
|
protected |
Definition at line 253 of file line_error.hpp.
Referenced by QualifierName().
|
protected |
Definition at line 254 of file line_error.hpp.
Referenced by QualifierValue().
|
protected |
Definition at line 250 of file line_error.hpp.
Referenced by SeqId().
|
protected |
Definition at line 251 of file line_error.hpp.
Referenced by Line(), and PatchLineNumber().
|
protected |
Definition at line 256 of file line_error.hpp.
Referenced by AddOtherLine(), and OtherLines().