NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Common exception class for all exceptions thrown in NumeRe. More...
#include <error.hpp>
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] |
Common exception class for all exceptions thrown in NumeRe.
Errorcodes sind nun alphabetisch sortiert und werden auf eine spezielle Art durchnummeriert. Neue Elemente immer direkt vor den Elementen mit Konstanten Indices einfuegen!
|
inline |
Default constructor to create an invalid exception.
Definition at line 242 of file error.hpp.
References nErrorIndices.
|
inline |
Creates an exception based from an expression and position.
_err | ErrorCode |
sExpr | const std::string& |
n_pos | size_t |
Definition at line 259 of file error.hpp.
References errorcode, nErrorPosition, and sFailingExpression.
|
inline |
Creates an exception based from an expression and position and provides the possibility to define an additional token.
_err | ErrorCode |
sExpr | const std::string& |
n_pos | size_t |
sToken | const std::string& |
Definition at line 277 of file error.hpp.
References errorcode, nErrorPosition, sErrorToken, and sFailingExpression.
|
inline |
Creates an exception based from an expression and position and provides the possibility to set additional error indices.
_err | ErrorCode |
sExpr | const std::string& |
n_pos | size_t |
nInd1 | int |
nInd2 | int |
nInd3 | int |
nInd4 | int |
Definition at line 299 of file error.hpp.
References nErrorIndices.
|
inline |
Creates an exception based from an expression and position and provides the possibility to set an additional token and the error indices.
_err | ErrorCode |
sExpr | const std::string& |
n_pos | size_t |
sToken | const std::string& |
nInd1 | int |
nInd2 | int |
nInd3 | int |
nInd4 | int |
Definition at line 323 of file error.hpp.
References nErrorIndices.
|
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.
_err | ErrorCode |
sExpr | const std::string& |
sErrTok | const std::string& |
Definition at line 342 of file error.hpp.
References errorcode, nErrorPosition, and sFailingExpression.
|
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.
_err | ErrorCode |
sExpr | const std::string& |
sErrTok | const std::string& |
sToken | const std::string& |
Definition at line 362 of file error.hpp.
References errorcode, nErrorPosition, sErrorToken, and sFailingExpression.
|
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.
_err | ErrorCode |
sExpr | const std::string& |
sErrTok | const std::string& |
nInd1 | int |
nInd2 | int |
nInd3 | int |
nInd4 | int |
Definition at line 386 of file error.hpp.
References nErrorIndices, nErrorPosition, and sFailingExpression.
|
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.
_err | ErrorCode |
sExpr | const std::string& |
sErrTok | const std::string& |
sToken | const std::string& |
nInd1 | int |
nInd2 | int |
nInd3 | int |
nInd4 | int |
Definition at line 413 of file error.hpp.
References nErrorIndices, nErrorPosition, and sFailingExpression.
|
inline |
Returns the erroneous expression.
Definition at line 428 of file error.hpp.
References sFailingExpression.
|
inline |
Returns a pointer to the internal array of 4 error indices.
Definition at line 458 of file error.hpp.
References nErrorIndices.
Referenced by NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCreatePackage(), and NumeReDebugger::throwException().
|
inline |
Returns the position of the error in the erroneous expression.
Definition at line 448 of file error.hpp.
References nErrorPosition.
|
inline |
Returns the error token containing additional information about the error.
Definition at line 438 of file error.hpp.
References sErrorToken.
Referenced by CodeAnalyzer::analyseCommands(), NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCreatePackage(), and NumeReDebugger::throwException().
ErrorCode SyntaxError::errorcode |
Definition at line 234 of file error.hpp.
Referenced by NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCreatePackage(), SyntaxError(), and NumeReDebugger::throwException().
|
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().
|
private |
Definition at line 37 of file error.hpp.
Referenced by getIndices(), and SyntaxError().
|
private |
Definition at line 36 of file error.hpp.
Referenced by getPosition(), and SyntaxError().
|
private |
Definition at line 35 of file error.hpp.
Referenced by getToken(), and SyntaxError().
|
private |
Definition at line 34 of file error.hpp.
Referenced by getExpr(), and SyntaxError().