NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
SyntaxError Class Reference

Common exception class for all exceptions thrown in NumeRe. More...

#include <error.hpp>

Collaboration diagram for SyntaxError:

Public Types

enum  ErrorCode {
  EMPTY_ERROR_MESSAGE = -1 , CACHE_ALREADY_EXISTS , CACHE_CANNOT_BE_RENAMED , CACHE_DOESNT_EXIST ,
  CLUSTER_DOESNT_EXIST , ASSERTION_ERROR , CANNOT_BE_A_FITTING_PARAM =100 , CANNOT_CALL_SCRIPT_RECURSIVELY ,
  CANNOT_CONTAIN_STRINGS , CANNOT_COPY_DATA , CANNOT_COPY_FILE , CANNOT_DELETE_ELEMENTS ,
  CANNOT_EDIT_FILE_TYPE , CANNOT_EVAL_FOR , CANNOT_EVAL_IF , CANNOT_EVAL_WHILE ,
  CANNOT_EXPORT_DATA , CANNOT_FIND_DEFINE_OPRT , CANNOT_FIND_FUNCTION_ARGS , CANNOT_GENERATE_DIRECTORY ,
  CANNOT_GENERATE_FILE , CANNOT_GENERATE_PROCEDURE , CANNOT_GENERATE_SCRIPT , CANNOT_MOVE_DATA ,
  CANNOT_MOVE_FILE , CANNOT_OPEN_FITLOG , CANNOT_OPEN_LOGFILE , CANNOT_OPEN_SOURCE ,
  CANNOT_OPEN_TARGET , CANNOT_PLOT_STRINGS , CANNOT_READ_FILE , CANNOT_REGULARIZE_CACHE ,
  CANNOT_RELOAD_DATA , CANNOT_REMOVE_FILE , CANNOT_RESAMPLE_CACHE , CANNOT_RETOQUE_CACHE ,
  CANNOT_SAVE_CACHE , CANNOT_SAVE_FILE , CANNOT_SMOOTH_CACHE , CANNOT_SORT_CACHE ,
  CANNOT_SORT_DATA , CANNOT_EVAL_SWITCH , CANNOT_PASS_LITERAL_PER_REFERENCE , CANNOT_ASSIGN_COLUMN_OF_DIFFERENT_TYPE ,
  CANNOT_EVAL_TRY , COL_COUNTS_DOESNT_MATCH =200 , CUTOFF_MODE_INVALID , DATAFILE_NOT_EXIST =300 ,
  DATAPOINTS_CANNOT_BE_MODIFIED_WHILE_PLOTTING =400 , DIFF_VAR_NOT_FOUND =500 , ELLIPSIS_MUST_BE_LAST_ARG =600 , EVAL_VAR_NOT_FOUND =700 ,
  EXTERNAL_PROGRAM_NOT_FOUND =800 , EXTREMA_VAR_NOT_FOUND =900 , EXECUTE_COMMAND_DISABLED , EXECUTE_COMMAND_UNSUCCESSFUL ,
  FILETYPE_MAY_NOT_BE_WRITTEN =1000 , FILE_IS_EMPTY =1100 , FILE_NOT_EXIST , FITFUNC_NOT_CONTAINS =1200 ,
  FUNCTION_ALREADY_EXISTS =1300 , FUNCTION_ARGS_MUST_NOT_CONTAIN_SIGN , FUNCTION_CANNOT_BE_FITTED , FUNCTION_ERROR ,
  FUNCTION_IS_PREDEFINED , FUNCTION_NAMES_MUST_NOT_CONTAIN_SIGN , FUNCTION_STRING_IS_COMMAND , HLPIDX_ENTRY_IS_MISSING =1400 ,
  HLP_FILE_MISSING , IF_OR_LOOP_SEEMS_NOT_TO_BE_CLOSED =1500 , INCOMPLETE_VECTOR_SYNTAX =1600 , INLINE_PROCEDURE_IS_NOT_INLINE =1700 ,
  INLINE_PROCEDURE_NEEDS_TABLE_REFERENCES , INSTALL_CMD_FOUND =1800 , INSUFFICIENT_NUMERE_VERSION =1900 , INTERNAL_RESAMPLER_ERROR ,
  INVALID_CACHE_NAME =2000 , INVALID_DATA_ACCESS , INVALID_ELEMENT , INVALID_FILETYPE ,
  INVALID_HLPIDX , INVALID_INDEX , INVALID_INTEGRATION_PRECISION , INVALID_INTEGRATION_RANGES ,
  INVALID_INTERVAL , INVALID_PROCEDURE_NAME , INVALID_SUBPLOT_INDEX , INVALID_WAVELET_TYPE ,
  INVALID_WAVELET_COEFFICIENT , INVALID_CLUSTER_NAME , INVALID_SETTING , INVALID_REGEX ,
  INVALID_WINDOW_ID , INVALID_WINDOW_ITEM_ID , INVALID_SYM_NAME , INVALID_FLOWCTRL_STATEMENT ,
  INVALID_STATS_WINDOW_SIZE , INVALID_COMMAND , INCLUDE_NOT_EXIST , INVALID_MODE ,
  INVALID_FILTER_SIZE , LGS_HAS_NO_SOLUTION =2100 , LGS_HAS_NO_UNIQUE_SOLUTION , LOOP_THROW =2200 ,
  MATRIX_IS_NOT_INVERTIBLE =2300 , MATRIX_IS_NOT_SYMMETRIC , MATRIX_CANNOT_HAVE_ZERO_SIZE , MATRIX_CONTAINS_INVALID_VALUES ,
  MISSING_DEFAULT_VALUE =2400 , NO_CACHED_DATA =2500 , NO_COLS , NO_DATA_AVAILABLE ,
  NO_DATA_FOR_FIT , NO_DIFF_OPTIONS , NO_DIFF_VAR , NO_EVAL_OPTIONS ,
  NO_EVAL_VAR , NO_EXPRESSION_FOR_ODE , NO_EXTREMA_OPTIONS , NO_EXTREMA_VAR ,
  NO_FILENAME , NO_FUNCTION_FOR_FIT , NO_INTEGRATION_FUNCTION , NO_INTEGRATION_RANGES ,
  NO_INTERVAL_FOR_ODE , NO_MATRIX , NO_MATRIX_FOR_MATOP , NO_NUMBER_AT_POS_1 ,
  NO_OPTIONS_FOR_ODE , NO_PARAMS_FOR_FIT , NO_ROWS , NO_STRING_FOR_WRITING ,
  NO_TARGET , NO_ZEROES_OPTIONS , NO_ZEROES_VAR , NO_DEFAULTVALUE_FOR_DIALOG ,
  NUMBER_OF_FUNCTIONS_NOT_MATCHING =2600 , OVERFITTING_ERROR =2700 , PLOTDATA_IS_NAN =2800 , PLOT_ERROR ,
  PLUGINCMD_ALREADY_EXISTS =2900 , PLUGINNAME_ALREADY_EXISTS , PLUGIN_HAS_NO_CMD , PLUGIN_HAS_NO_MAIN ,
  PLUGIN_MAY_NOT_OVERRIDE , PRIVATE_PROCEDURE_CALLED =3000 , PROCEDURE_ERROR =3100 , PROCEDURE_NOT_FOUND ,
  PROCEDURE_THROW , PROCEDURE_WITHOUT_INSTALL_FOUND , PROCEDURE_STACK_OVERFLOW , PROCESS_ABORTED_BY_USER =3200 ,
  READ_ONLY_DATA =3300 , SCRIPT_NOT_EXIST =3400 , SEPARATOR_NOT_FOUND =3500 , STRINGS_MAY_NOT_BE_EVALUATED_WITH_CMD =3600 ,
  STRINGVARS_MUSTNT_BEGIN_WITH_A_NUMBER , STRINGVARS_MUSTNT_CONTAIN , STRING_ERROR , TABLE_DOESNT_EXIST =3700 ,
  TOO_FEW_ARGS =3800 , TOO_FEW_COLS , TOO_FEW_DATAPOINTS , TOO_FEW_LINES ,
  TOO_LARGE_BINWIDTH , TOO_LARGE_CACHE , TOO_MANY_ARGS , TOO_MANY_ARGS_FOR_DEFINE ,
  TOO_MANY_FUNCTION_CALLS , TOO_MANY_VECTORS , UNKNOWN_PATH_TOKEN =3900 , UNMATCHED_PARENTHESIS =4000 ,
  URL_ERROR , WRONG_ARG_NAME =4100 , WRONG_MATRIX_DIMENSIONS_FOR_MATOP , WRONG_PLOT_INTERVAL_FOR_LOGSCALE ,
  WRONG_DATA_SIZE , ZEROES_VAR_NOT_FOUND =4200
}
 

Public Member Functions

 SyntaxError ()
 Default constructor to create an invalid exception. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, size_t n_pos)
 Creates an exception based from an expression and position. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, size_t n_pos, const std::string &sToken)
 Creates an exception based from an expression and position and provides the possibility to define an additional token. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, size_t n_pos, int nInd1, int nInd2=invalid_index, int nInd3=invalid_index, int nInd4=invalid_index)
 Creates an exception based from an expression and position and provides the possibility to set additional error indices. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, size_t n_pos, const std::string &sToken, int nInd1, int nInd2=invalid_index, int nInd3=invalid_index, int nInd4=invalid_index)
 Creates an exception based from an expression and position and provides the possibility to set an additional token and the error indices. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, const std::string &sErrTok)
 Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, const std::string &sErrTok, const std::string &sToken)
 Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. Additionally, one can add a token with further information. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, const std::string &sErrTok, int nInd1, int nInd2=invalid_index, int nInd3=invalid_index, int nInd4=invalid_index)
 Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. Additionally, one can add a set of error indices. More...
 
 SyntaxError (ErrorCode _err, const std::string &sExpr, const std::string &sErrTok, const std::string &sToken, int nInd1, int nInd2=invalid_index, int nInd3=invalid_index, int nInd4=invalid_index)
 Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. Additionally, one can add a token and a set of error indices bearing more information about the issue. More...
 
std::string getExpr () const
 Returns the erroneous expression. More...
 
std::string getToken () const
 Returns the error token containing additional information about the error. More...
 
size_t getPosition () const
 Returns the position of the error in the erroneous expression. More...
 
const int * getIndices () const
 Returns a pointer to the internal array of 4 error indices. More...
 

Public Attributes

ErrorCode errorcode
 

Static Public Attributes

static size_t invalid_position = std::string::npos
 
static int invalid_index = INT_MIN
 

Private Attributes

std::string sFailingExpression
 
std::string sErrorToken
 
size_t nErrorPosition
 
int nErrorIndices [4]
 

Detailed Description

Common exception class for all exceptions thrown in NumeRe.

Definition at line 31 of file error.hpp.

Member Enumeration Documentation

◆ ErrorCode

Errorcodes sind nun alphabetisch sortiert und werden auf eine spezielle Art durchnummeriert. Neue Elemente immer direkt vor den Elementen mit Konstanten Indices einfuegen!

Enumerator
EMPTY_ERROR_MESSAGE 
CACHE_ALREADY_EXISTS 
CACHE_CANNOT_BE_RENAMED 
CACHE_DOESNT_EXIST 
CLUSTER_DOESNT_EXIST 
ASSERTION_ERROR 
CANNOT_BE_A_FITTING_PARAM 

INSERT HERE.

CANNOT_CALL_SCRIPT_RECURSIVELY 
CANNOT_CONTAIN_STRINGS 
CANNOT_COPY_DATA 
CANNOT_COPY_FILE 
CANNOT_DELETE_ELEMENTS 
CANNOT_EDIT_FILE_TYPE 
CANNOT_EVAL_FOR 
CANNOT_EVAL_IF 
CANNOT_EVAL_WHILE 
CANNOT_EXPORT_DATA 
CANNOT_FIND_DEFINE_OPRT 
CANNOT_FIND_FUNCTION_ARGS 
CANNOT_GENERATE_DIRECTORY 
CANNOT_GENERATE_FILE 
CANNOT_GENERATE_PROCEDURE 
CANNOT_GENERATE_SCRIPT 
CANNOT_MOVE_DATA 
CANNOT_MOVE_FILE 
CANNOT_OPEN_FITLOG 
CANNOT_OPEN_LOGFILE 
CANNOT_OPEN_SOURCE 
CANNOT_OPEN_TARGET 
CANNOT_PLOT_STRINGS 
CANNOT_READ_FILE 
CANNOT_REGULARIZE_CACHE 
CANNOT_RELOAD_DATA 
CANNOT_REMOVE_FILE 
CANNOT_RESAMPLE_CACHE 
CANNOT_RETOQUE_CACHE 
CANNOT_SAVE_CACHE 
CANNOT_SAVE_FILE 
CANNOT_SMOOTH_CACHE 
CANNOT_SORT_CACHE 
CANNOT_SORT_DATA 
CANNOT_EVAL_SWITCH 
CANNOT_PASS_LITERAL_PER_REFERENCE 
CANNOT_ASSIGN_COLUMN_OF_DIFFERENT_TYPE 
CANNOT_EVAL_TRY 
COL_COUNTS_DOESNT_MATCH 

INSERT HERE.

CUTOFF_MODE_INVALID 
DATAFILE_NOT_EXIST 

INSERT HERE.

DATAPOINTS_CANNOT_BE_MODIFIED_WHILE_PLOTTING 
DIFF_VAR_NOT_FOUND 
ELLIPSIS_MUST_BE_LAST_ARG 
EVAL_VAR_NOT_FOUND 
EXTERNAL_PROGRAM_NOT_FOUND 
EXTREMA_VAR_NOT_FOUND 
EXECUTE_COMMAND_DISABLED 
EXECUTE_COMMAND_UNSUCCESSFUL 
FILETYPE_MAY_NOT_BE_WRITTEN 
FILE_IS_EMPTY 
FILE_NOT_EXIST 
FITFUNC_NOT_CONTAINS 
FUNCTION_ALREADY_EXISTS 
FUNCTION_ARGS_MUST_NOT_CONTAIN_SIGN 
FUNCTION_CANNOT_BE_FITTED 
FUNCTION_ERROR 
FUNCTION_IS_PREDEFINED 
FUNCTION_NAMES_MUST_NOT_CONTAIN_SIGN 
FUNCTION_STRING_IS_COMMAND 
HLPIDX_ENTRY_IS_MISSING 

INSERT HERE.

HLP_FILE_MISSING 
IF_OR_LOOP_SEEMS_NOT_TO_BE_CLOSED 
INCOMPLETE_VECTOR_SYNTAX 
INLINE_PROCEDURE_IS_NOT_INLINE 
INLINE_PROCEDURE_NEEDS_TABLE_REFERENCES 
INSTALL_CMD_FOUND 
INSUFFICIENT_NUMERE_VERSION 
INTERNAL_RESAMPLER_ERROR 
INVALID_CACHE_NAME 
INVALID_DATA_ACCESS 
INVALID_ELEMENT 
INVALID_FILETYPE 
INVALID_HLPIDX 
INVALID_INDEX 
INVALID_INTEGRATION_PRECISION 
INVALID_INTEGRATION_RANGES 
INVALID_INTERVAL 
INVALID_PROCEDURE_NAME 
INVALID_SUBPLOT_INDEX 
INVALID_WAVELET_TYPE 
INVALID_WAVELET_COEFFICIENT 
INVALID_CLUSTER_NAME 
INVALID_SETTING 
INVALID_REGEX 
INVALID_WINDOW_ID 
INVALID_WINDOW_ITEM_ID 
INVALID_SYM_NAME 
INVALID_FLOWCTRL_STATEMENT 
INVALID_STATS_WINDOW_SIZE 
INVALID_COMMAND 
INCLUDE_NOT_EXIST 
INVALID_MODE 
INVALID_FILTER_SIZE 
LGS_HAS_NO_SOLUTION 

INSERT HERE.

LGS_HAS_NO_UNIQUE_SOLUTION 
LOOP_THROW 
MATRIX_IS_NOT_INVERTIBLE 
MATRIX_IS_NOT_SYMMETRIC 
MATRIX_CANNOT_HAVE_ZERO_SIZE 
MATRIX_CONTAINS_INVALID_VALUES 
MISSING_DEFAULT_VALUE 
NO_CACHED_DATA 
NO_COLS 
NO_DATA_AVAILABLE 
NO_DATA_FOR_FIT 
NO_DIFF_OPTIONS 
NO_DIFF_VAR 
NO_EVAL_OPTIONS 
NO_EVAL_VAR 
NO_EXPRESSION_FOR_ODE 
NO_EXTREMA_OPTIONS 
NO_EXTREMA_VAR 
NO_FILENAME 
NO_FUNCTION_FOR_FIT 
NO_INTEGRATION_FUNCTION 
NO_INTEGRATION_RANGES 
NO_INTERVAL_FOR_ODE 
NO_MATRIX 
NO_MATRIX_FOR_MATOP 
NO_NUMBER_AT_POS_1 
NO_OPTIONS_FOR_ODE 
NO_PARAMS_FOR_FIT 
NO_ROWS 
NO_STRING_FOR_WRITING 
NO_TARGET 
NO_ZEROES_OPTIONS 
NO_ZEROES_VAR 
NO_DEFAULTVALUE_FOR_DIALOG 
NUMBER_OF_FUNCTIONS_NOT_MATCHING 

INSERT HERE.

OVERFITTING_ERROR 
PLOTDATA_IS_NAN 
PLOT_ERROR 
PLUGINCMD_ALREADY_EXISTS 
PLUGINNAME_ALREADY_EXISTS 
PLUGIN_HAS_NO_CMD 
PLUGIN_HAS_NO_MAIN 
PLUGIN_MAY_NOT_OVERRIDE 
PRIVATE_PROCEDURE_CALLED 

INSERT HERE.

PROCEDURE_ERROR 
PROCEDURE_NOT_FOUND 
PROCEDURE_THROW 
PROCEDURE_WITHOUT_INSTALL_FOUND 
PROCEDURE_STACK_OVERFLOW 
PROCESS_ABORTED_BY_USER 
READ_ONLY_DATA 
SCRIPT_NOT_EXIST 
SEPARATOR_NOT_FOUND 
STRINGS_MAY_NOT_BE_EVALUATED_WITH_CMD 
STRINGVARS_MUSTNT_BEGIN_WITH_A_NUMBER 
STRINGVARS_MUSTNT_CONTAIN 
STRING_ERROR 
TABLE_DOESNT_EXIST 

INSERT HERE.

TOO_FEW_ARGS 
TOO_FEW_COLS 
TOO_FEW_DATAPOINTS 
TOO_FEW_LINES 
TOO_LARGE_BINWIDTH 
TOO_LARGE_CACHE 
TOO_MANY_ARGS 
TOO_MANY_ARGS_FOR_DEFINE 
TOO_MANY_FUNCTION_CALLS 
TOO_MANY_VECTORS 
UNKNOWN_PATH_TOKEN 

INSERT HERE.

UNMATCHED_PARENTHESIS 
URL_ERROR 
WRONG_ARG_NAME 
WRONG_MATRIX_DIMENSIONS_FOR_MATOP 
WRONG_PLOT_INTERVAL_FOR_LOGSCALE 
WRONG_DATA_SIZE 
ZEROES_VAR_NOT_FOUND 

INSERT HERE.

Definition at line 42 of file error.hpp.

Constructor & Destructor Documentation

◆ SyntaxError() [1/9]

SyntaxError::SyntaxError ( )
inline

Default constructor to create an invalid exception.

Definition at line 242 of file error.hpp.

References nErrorIndices.

◆ SyntaxError() [2/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
size_t  n_pos 
)
inline

Creates an exception based from an expression and position.

Parameters
_errErrorCode
sExprconst std::string&
n_possize_t

Definition at line 259 of file error.hpp.

References errorcode, nErrorPosition, and sFailingExpression.

◆ SyntaxError() [3/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
size_t  n_pos,
const std::string &  sToken 
)
inline

Creates an exception based from an expression and position and provides the possibility to define an additional token.

Parameters
_errErrorCode
sExprconst std::string&
n_possize_t
sTokenconst std::string&

Definition at line 277 of file error.hpp.

References errorcode, nErrorPosition, sErrorToken, and sFailingExpression.

◆ SyntaxError() [4/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
size_t  n_pos,
int  nInd1,
int  nInd2 = invalid_index,
int  nInd3 = invalid_index,
int  nInd4 = invalid_index 
)
inline

Creates an exception based from an expression and position and provides the possibility to set additional error indices.

Parameters
_errErrorCode
sExprconst std::string&
n_possize_t
nInd1int
nInd2int
nInd3int
nInd4int

Definition at line 299 of file error.hpp.

References nErrorIndices.

◆ SyntaxError() [5/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
size_t  n_pos,
const std::string &  sToken,
int  nInd1,
int  nInd2 = invalid_index,
int  nInd3 = invalid_index,
int  nInd4 = invalid_index 
)
inline

Creates an exception based from an expression and position and provides the possibility to set an additional token and the error indices.

Parameters
_errErrorCode
sExprconst std::string&
n_possize_t
sTokenconst std::string&
nInd1int
nInd2int
nInd3int
nInd4int

Definition at line 323 of file error.hpp.

References nErrorIndices.

◆ SyntaxError() [6/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
const std::string &  sErrTok 
)
inline

Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression.

Parameters
_errErrorCode
sExprconst std::string&
sErrTokconst std::string&

Definition at line 342 of file error.hpp.

References errorcode, nErrorPosition, and sFailingExpression.

◆ SyntaxError() [7/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
const std::string &  sErrTok,
const std::string &  sToken 
)
inline

Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. Additionally, one can add a token with further information.

Parameters
_errErrorCode
sExprconst std::string&
sErrTokconst std::string&
sTokenconst std::string&

Definition at line 362 of file error.hpp.

References errorcode, nErrorPosition, sErrorToken, and sFailingExpression.

◆ SyntaxError() [8/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
const std::string &  sErrTok,
int  nInd1,
int  nInd2 = invalid_index,
int  nInd3 = invalid_index,
int  nInd4 = invalid_index 
)
inline

Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. Additionally, one can add a set of error indices.

Parameters
_errErrorCode
sExprconst std::string&
sErrTokconst std::string&
nInd1int
nInd2int
nInd3int
nInd4int

Definition at line 386 of file error.hpp.

References nErrorIndices, nErrorPosition, and sFailingExpression.

◆ SyntaxError() [9/9]

SyntaxError::SyntaxError ( ErrorCode  _err,
const std::string &  sExpr,
const std::string &  sErrTok,
const std::string &  sToken,
int  nInd1,
int  nInd2 = invalid_index,
int  nInd3 = invalid_index,
int  nInd4 = invalid_index 
)
inline

Creates an exception based from an expression and an error token, which is used to locate the position of the error in the expression. Additionally, one can add a token and a set of error indices bearing more information about the issue.

Parameters
_errErrorCode
sExprconst std::string&
sErrTokconst std::string&
sTokenconst std::string&
nInd1int
nInd2int
nInd3int
nInd4int

Definition at line 413 of file error.hpp.

References nErrorIndices, nErrorPosition, and sFailingExpression.

Member Function Documentation

◆ getExpr()

std::string SyntaxError::getExpr ( ) const
inline

Returns the erroneous expression.

Returns
std::string

Definition at line 428 of file error.hpp.

References sFailingExpression.

◆ getIndices()

const int * SyntaxError::getIndices ( ) const
inline

Returns a pointer to the internal array of 4 error indices.

Returns
const int*

Definition at line 458 of file error.hpp.

References nErrorIndices.

Referenced by NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCreatePackage(), and NumeReDebugger::throwException().

◆ getPosition()

size_t SyntaxError::getPosition ( ) const
inline

Returns the position of the error in the erroneous expression.

Returns
size_t

Definition at line 448 of file error.hpp.

References nErrorPosition.

◆ getToken()

std::string SyntaxError::getToken ( ) const
inline

Returns the error token containing additional information about the error.

Returns
std::string

Definition at line 438 of file error.hpp.

References sErrorToken.

Referenced by CodeAnalyzer::analyseCommands(), NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCreatePackage(), and NumeReDebugger::throwException().

Member Data Documentation

◆ errorcode

◆ invalid_index

int SyntaxError::invalid_index = INT_MIN
static

Definition at line 236 of file error.hpp.

◆ invalid_position

size_t SyntaxError::invalid_position = std::string::npos
static

Definition at line 235 of file error.hpp.

Referenced by MemoryManager::addReference(), MemoryManager::addTable(), Memory::Allocate(), append_data(), NumeRe::StringFuncHandler::applySpecialStringFuncs(), autoSave(), FlowCtrl::calc(), calculateWavelet(), FunctionDefinitionManager::call(), ProcedureVarFactory::checkArgument(), ProcedureVarFactory::checkArgumentValue(), FlowCtrl::checkParsingModeAndExpandDefinitions(), cmd_audio(), cmd_audioread(), cmd_copy(), cmd_delete(), cmd_move(), cmd_regularize(), cmd_remove(), cmd_resample(), cmd_retouch(), cmd_seek(), cmd_show(), cmd_smooth(), cmd_start(), cmd_stats(), FlowCtrl::compile(), convertVectorToExpression(), copyFile(), NumeRe::CommaSeparatedValues::countColumns(), createDatagrid(), Plot::createDataLegends(), createHist1D(), createHist2D(), ProcedureVarFactory::createLocalClusters(), ProcedureVarFactory::createLocalInlineStrings(), ProcedureVarFactory::createLocalInlineVars(), ProcedureVarFactory::createLocalStrings(), ProcedureVarFactory::createLocalTables(), ProcedureVarFactory::createLocalVars(), createMatFromLines(), createMatFromLinesFilled(), createPlotsForHist2D(), ProcedureVarFactory::createProcedureArguments(), NumeRe::GenericFile::createStorage(), NumeRe::StringVarFactory::createStringVectorVar(), Plot::createSubPlotSet(), createTeXExport(), createZeroesMatrix(), PackageManager::declareNewPackage(), FunctionDefinition::decodeDefinition(), Plot::defaultRanges(), FunctionDefinitionManager::defineFunc(), differentiate(), doc_Help(), editObject(), FlowCtrl::eval(), NumeRe::StringParser::eval(), NumeRe::StringFuncHandler::evalFunction(), FlowCtrl::evalHeader(), evalPoints(), FlowCtrl::evalRangeBasedHeader(), evaluateFittingParams(), ProcedureVarFactory::evaluateProcedureArguments(), Plot::evaluateSubplot(), evaluateTargetOptionInCommand(), Procedure::execute(), executeCommand(), expandIndexVectors(), Plot::extractDataValues(), Procedure::extractProcedureInformation(), findExtrema(), findExtremaInData(), findZeroes(), findZeroesInData(), Fitcontroller::fitctrl(), fitDataSet(), Plot::fitPlotRanges(), NumeRe::Container< T >::get(), getAccessParserForPlotAndFit(), getDataElements(), getDataForFit(), CommandLineParser::getExprAsFileName(), ProcedureLibrary::getFileContents(), CommandLineParser::getFileParameterValue(), getFittingParameters(), Documentation::getHelpArticle(), getIndices(), Procedure::getInlined(), getMatrixElements(), Script::getNextScriptCommand(), ProcedureLibrary::getProcedureContents(), Interval::getSample(), getSamplesForDatagrid(), NumeRe::GenericFile::getZipFileItem(), handleCachedDataAccess(), handleCasualIndices(), Procedure::handleIncludeSyntax(), Script::handleIncludeSyntax(), Script::handleInstallInformation(), integrate(), integrate2d(), Procedure::isInlineable(), loadDocumentationArticle(), DocumentationFile::loadFromFile(), PackageManager::loadPlugins(), NumeReKernel::MainLoop(), make_stringmatrix(), moveOrCopyFiles(), NumeRe::StringParser::numToString(), NumeRe::GenericFile::open(), openExternally(), NumeRe::FileAdapter::openFile(), Includer::openIncludedFile(), Script::openScript(), Matrix::operator()(), Matrix::operator*(), NumeRe::DataBase::operator[](), FunctionDefinition::parse(), CommandLineParser::parseExprAsNumericalValues(), CommandLineParser::parseFileName(), parseHeader(), parseLayoutScript(), NumeRe::StringParser::parseStringsInIndices(), Plot::passRangesToGraph(), performMatrixOperation(), plugin_histogram(), plugin_random(), plugin_statistics(), prepareIntervalsForHist(), DocumentationFile::print(), Procedure::ProcCalc(), Procedure::procedureInterface(), readAndParseIntervals(), NumeRe::CacheFile::readCacheHeader(), NumeRe::TextDataFile::readFile(), NumeRe::CassyLabx::readFile(), NumeRe::CommaSeparatedValues::readFile(), NumeRe::JcampDX::readFile(), NumeRe::OpenDocumentSpreadSheet::readFile(), NumeRe::XLSSpreadSheet::readFile(), NumeRe::XLSXSpreadSheet::readFile(), NumeRe::IgorBinaryWave::readFile(), NumeRe::ZygoDat::readFile(), readFromFile(), NumeRe::NumeReDataFile::readHeader(), readImage(), NumeRe::JcampDX::readTable(), Documentation::removeFromDocIndex(), MemoryManager::renameTable(), replaceDataEntities(), Memory::resample(), Memory::save(), saveDataObject(), Plot::separateFunctionsAndData(), FlowCtrl::setCommand(), NumeRe::StringVarFactory::setStringValue(), show_data(), Memory::smooth(), Odesolver::solve(), sortData(), Memory::sortElements(), NumeRe::Cluster::sortElements(), StringInternalMemory::sortElements(), FunctionDefinition::splitAndValidateArguments(), Script::startInstallation(), strfnc_regex(), MemoryManager::swapTables(), taylor(), transposeMatrix(), PackageManager::updatePluginFile(), NumeRe::ClusterManager::validateClusterName(), Script::writeLayout(), Procedure::writeProcedure(), writeTeXMain(), and writeToFile().

◆ nErrorIndices

int SyntaxError::nErrorIndices[4]
private

Definition at line 37 of file error.hpp.

Referenced by getIndices(), and SyntaxError().

◆ nErrorPosition

size_t SyntaxError::nErrorPosition
private

Definition at line 36 of file error.hpp.

Referenced by getPosition(), and SyntaxError().

◆ sErrorToken

std::string SyntaxError::sErrorToken
private

Definition at line 35 of file error.hpp.

Referenced by getToken(), and SyntaxError().

◆ sFailingExpression

std::string SyntaxError::sFailingExpression
private

Definition at line 34 of file error.hpp.

Referenced by getExpr(), and SyntaxError().


The documentation for this class was generated from the following files: