45 const std::
string& strSeqId,
47 const std::
string & strFeatureName,
48 const std::
string & strQualifierName,
49 const std::
string & strQualifierValue,
50 const std::
string & strErrorMessage,
84 : m_eProblem(eProblem), m_eSeverity( eSeverity ), m_strSeqId(strSeqId), m_uLine( uLine ),
85 m_strFeatureName(strFeatureName), m_strQualifierName(strQualifierName),
86 m_strQualifierValue(strQualifierValue), m_strErrorMessage(strErrorMessage),
87 m_vecOfOtherLines(vecOfOtherLines)
91 m_eProblem(rhs.m_eProblem), m_eSeverity(rhs.m_eSeverity ), m_strSeqId(rhs.m_strSeqId), m_uLine(rhs.m_uLine ),
92 m_strFeatureName(rhs.m_strFeatureName), m_strQualifierName(rhs.m_strQualifierName),
93 m_strQualifierValue(rhs.m_strQualifierValue), m_strErrorMessage(rhs.m_strErrorMessage),
94 m_vecOfOtherLines(rhs.m_vecOfOtherLines)
153 : m_eProblem(eProblem), m_eSeverity( eSeverity ),
154 m_Code(
code), m_Subcode(subcode),
155 m_strSeqId(strSeqId), m_uLine( uLine ),
156 m_strFeatureName(strFeatureName), m_strQualifierName(strQualifierName),
157 m_strQualifierValue(strQualifierValue),
158 m_strErrorMessage(strErrorMessage),
159 m_vecOfOtherLines(vecOfOtherLines)
170 rhs.m_strErrorMessage,
171 rhs.m_strFeatureName,
172 rhs.m_strQualifierName,
173 rhs.m_strQualifierValue,
174 rhs.m_vecOfOtherLines)
210 eSeverity, uLine, strMessage, eProblem,
211 strSeqId, strFeatureName, strQualifierName, strQualifierValue,
212 eErrCode, vecOfOtherLines );
241 m_eProblem(eProblem), m_strSeqId(strSeqId), m_uLineNumber(uLine),
242 m_strFeatureName(strFeatureName), m_strQualifierName(strQualifierName),
243 m_strQualifierValue(strQualifierValue), m_strErrorMessage(strMessage),
244 m_vecOfOtherLines(vecOfOtherLines)
246 SetSeverity( eSeverity );
252 m_eProblem(rhs.Problem()), m_strSeqId(rhs.SeqId()), m_uLineNumber(rhs.
Line()),
253 m_strFeatureName(rhs.FeatureName()), m_strQualifierName(rhs.QualifierName()),
254 m_strQualifierValue(rhs.QualifierValue()), m_strErrorMessage(rhs.ErrorMessage()),
255 m_vecOfOtherLines(rhs.m_vecOfOtherLines)
void Throw(void) const
copy constructor is protected so please use this function to throw the object.
static CLineErrorEx * Create(EProblem eProblem, EDiagSev eSeverity, int code, int subcode, const std::string &strSeqId, unsigned int uLine, const std::string &strErrorMessage=string(""), const std::string &strFeatureName=string(""), const std::string &strQualifierName=string(""), const std::string &strQualifierValue=string(""), const TVecOfLines &vecOfOtherLines=TVecOfLines())
Use this because the constructor is protected.
virtual ILineError * Clone(void) const override
Use this because copy ctor is protected.
CLineErrorEx(EProblem eProblem, EDiagSev eSeverity, int code, int subcode, const std::string &strSeqId, unsigned int uLine, const std::string &strErrorMessage, const std::string &strFeatureName, const std::string &strQualifierName, const std::string &strQualifierValue, const TVecOfLines &m_vecOfOtherLine)
protected instead of public. Please use the Create function instead.
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.
void Throw(void) const
copy constructor is protected so please use this function to throw the object.
virtual ILineError * Clone(void) const
Use this because copy ctor is protected.
std::string ProblemStr() const
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.
EDiagSev Severity(void) const
virtual ILineError * Clone(void) const
Use instead of copy constructor, which is protected.
void Throw(void) const
this function to throw this object.
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.
std::string m_strErrorMessage
vector< unsigned int > TVecOfLines
virtual std::string ProblemStr(void) const
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
EDiagSev
Severity level for the posted diagnostics.
@ eDiag_Info
Informational message.
EErrCode
Error types that an application can generate.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.