(GetErrCode()) {
101 caseeParseKeywordExpected:
return "eKeywordExpected";
102 caseeParseAsnSelectorExpected:
return "eSelectorExpected";
104 caseeParseMacroNameExpected:
return "eMacroNameExpected";
106 caseeParseVariableDefined:
return "eVarDefined";
107 caseeParseVarDefinitionExpected:
return "eVarDefinitionExpected";
108 caseeParseUndefinedVariable:
return "eUndefinedVar";
109 caseeParseIdentifierNameExpected:
return "eIdentifierNameExpected";
110 caseeParseWrongVariableUsage:
return "eWrongVariableUsage";
112 caseeParseAssignmentExpected:
return "eAssignmentExpected";
113 caseeParseAssignmentToConst:
return "eWrongVarAssignment";
116 caseeParseLeftBraceExpected:
return "eLeftBraceExpected";
117 caseeParseCommaOrRightBraceExpected:
return "eCommaOrRightBraceExpected";
118 caseeParseLeftParenthesisExpected:
return "eLeftParanthExpected";
119 caseeParseRightParenthesisExpected:
return "eRightParanthExpected";
121 caseeParseWhereClauseExpected:
return "eWhereSectionExpected";
122 caseeParseWhereClauseInvalid:
return "eInvalidWhereSection";
124 caseeParseFunctionOrObjectNameExpected:
return "eFncOrObjectexpected";
125 caseeParseFunctionExpected:
return "eFncNameExpected";
126 caseeParseFunctionOrDoneExpected:
return "eFncOrDONEExpected";
127 caseeParseEndOfFunction:
return "eEndOfFunction";
129 caseeParseNothingExpected:
return "eNoTokenExpected";
130 caseeParseSemicolonExpected:
return "eSemicolonExpected";
131 caseeParseSeparatorExpected:
return "eSeparatorExpected";
150 const CException* prev_exception, EErrCode err_code,
163 out<<
"Data context:"<< endl;
217 const CException*prev_exception, EErrCode err_code,
218 const string&message,
unsignedlineNo = 0,
unsignedcolumnNo = 0,
EDiagSevseverity =
eDiag_Error)
229 caseeInternalError:
return "Internal error";
230 caseeWrongArguments:
return "Wrong arguments";
231 caseeIncorrectIdentifier:
return "Incorrect identifier";
232 caseeFunctionNotImplemented:
return "Function was not implemented";
233 caseeWrongFunctionScope:
return "Wrong function scope";
234 caseeInvalidQuery:
return "Invalid query";
235 caseeIncorrectNodeType:
return "Incorrect node type";
236 caseeVarNotResolved:
return "Variable not resolved";
237 caseeInvalidData:
return "Invalid data";
238 caseeFileNotFound:
return "File not found";
239 caseeMultipleEntries:
return "Multiple entries in the table file";
240 caseeSynonymsNotFound:
return "Synonyms of a phrase not found";
242 default:
return "";
247 unsigned GetLineNo(
void)
const throw() {
returnm_LineNo; }
250 void SetLineNo(
unsignedlineNo)
throw() { m_LineNo = lineNo; }
253 unsigned GetColumnNo(
void)
const throw() {
returnm_ColumnNo; }
255 void SetColumnNo(
unsignedcolumnNo)
throw() { m_ColumnNo = columnNo; }
259 out<<
"[Error] Line "<< m_LineNo <<
", Pos "<< m_ColumnNo << endl;
282 unsignedcolumnNo(0);
286lineNo = loc.
line+ 1;
287columnNo = loc.
pos+ 1;
Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function.
class CMacroExecException
class CMacroExecException
definition of a Culling tree
std::ofstream out("events_result.xml")
main entry point for tests
EDiagSev
Severity level for the posted diagnostics.
@ eDiag_Error
Error message.
TErrCode GetErrCode(void) const
Get error code.
virtual void x_Assign(const CException &src)
Helper method for copying exception data.
#define NCBI_EXCEPTION_DEFAULT_IMPLEMENTATION(exception_class, base_class)
Helper macro for default exception implementation.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
#define EXCEPTION_VIRTUAL_BASE
Do not use virtual base classes in exception declaration at all, because in this case derived class s...
CException(void)
Constructor with no arguments.
virtual void x_Assign(const CException &src) override
virtual void ReportExtra(ostream &out) const override
virtual void ReportExtra(ostream &out) const override
Constructor.
void ThrowCMacroExecException(const CDiagCompileInfo &info, CMacroExecException::EErrCode code, const string &message, const CQueryParseTree::TNode *treeNode, const CException *previous=nullptr)
Throws CMacroExecException with the specified message and error location from the TNode.
CConstRef< CSerialObject > GetData() const
Returns the ASN.1 data that caused the error.
void SetColumnNo(unsigned columnNo)
Sets the column number where error occurred.
unsigned GetColumnNo(void) const
Returns the column number where error occurred.
virtual const char * GetErrCodeString(void) const override
virtual const char * GetErrCodeString(void) const override
virtual void x_Assign(const CException &src) override
void SetLineNo(unsigned lineNo)
Sets the line number where error occurred.
unsigned GetLineNo(void) const
Returns the line number where error occurred.
NCBI_EXCEPTION_DEFAULT(CMacroParseException, CException)
string GetDataAsString() const
Returns the text encoded ASN.1 data that caused the error.
unsigned m_ColumnNo
Column where the error occured.
unsigned m_LineNo
Line where the error occured.
CConstRef< CSerialObject > m_Data
@ eParseAsnSelectorExpected
@ eParseRightParenthesisExpected
@ eParseWhereClauseExpected
@ eParseAssignmentToConst
@ eParseCommaOrRightBraceExpected
@ eParseSeparatorExpected
@ eParseFunctionOrDoneExpected
@ eParseMacroNameExpected
@ eParseWhereClauseInvalid
@ eParseThreadCountInvalid
@ eParseNamedAnnotExpected
@ eParseVarDefinitionExpected
@ eParseUndefinedVariable
@ eParseIdentifierNameExpected
@ eParseWrongVariableUsage
@ eParseLeftParenthesisExpected
@ eParseRightBracketExpected
@ eParseFunctionOrObjectNameExpected
@ eParseLeftBraceExpected
@ eParseAssignmentExpected
@ eParseLeftBracketExpected
@ eParseSemicolonExpected
@ eFunctionNotImplemented
#define MSerial_AsnText
I/O stream manipulators â.
unsigned pos
Position in the src line.
unsigned line
Src line number.
#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.
const TValue & GetValue(void) const
Return node's value.
#define NCBI_GUIOBJUTILS_EXPORT
Defines to provide correct exporting from DLLs in Windows.
Defines NCBI C++ exception handling.
Query string parsing components.
Source location (points to the position in the original src) All positions are 0 based.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4