|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include "error.hpp"#include "../utils/tools.hpp"#include "../strings/stringdatastructures.hpp"#include "../../kernel.hpp"#include "../maths/matdatastructures.hpp"Go to the source code of this file.
Functions | |
| ErrorType | getErrorType (std::exception_ptr e_ptr) |
| This function obtains the error type of a catched exception and sets the last error message. More... | |
| std::string | getLastErrorMessage () |
| Return the last error message, which was catched by the getErrorType() function. More... | |
| ErrorType | getLastErrorType () |
| Return the last error type, which was catched by the getErrorType() function. More... | |
| std::string | errorTypeToString (ErrorType e) |
| Return the error type converted to a human readable string. More... | |
Variables | |
| Assertion | _assertionHandler |
| static std::string | sLastErrorMessage |
| static ErrorType | nLastErrorType |
| std::string errorTypeToString | ( | ErrorType | e | ) |
Return the error type converted to a human readable string.
| e | ErrorType |
Definition at line 148 of file error.cpp.
References TYPE_ABORT, TYPE_ASSERTIONERROR, TYPE_CRITICALERROR, TYPE_CUSTOMERROR, TYPE_GENERICERROR, TYPE_INTERNALERROR, TYPE_MATHERROR, TYPE_NOERROR, and TYPE_SYNTAXERROR.
Referenced by NumeReKernel::defineConst(), strfnc_getlasterror(), and FlowCtrl::try_catch().
| ErrorType getErrorType | ( | std::exception_ptr | e_ptr | ) |
This function obtains the error type of a catched exception and sets the last error message.
| e_ptr | std::exception_ptr |
Definition at line 42 of file error.cpp.
References _lang, SyntaxError::ASSERTION_ERROR, Language::get(), mu::ParserError::GetMsg(), SyntaxError::LOOP_THROW, nLastErrorType, SyntaxError::PROCEDURE_THROW, SyntaxError::PROCESS_ABORTED_BY_USER, sLastErrorMessage, toString(), TYPE_ABORT, TYPE_ASSERTIONERROR, TYPE_CRITICALERROR, TYPE_CUSTOMERROR, TYPE_GENERICERROR, TYPE_INTERNALERROR, TYPE_MATHERROR, TYPE_NOERROR, and TYPE_SYNTAXERROR.
Referenced by FlowCtrl::try_catch().
| std::string getLastErrorMessage | ( | ) |
Return the last error message, which was catched by the getErrorType() function.
Definition at line 121 of file error.cpp.
References sLastErrorMessage.
Referenced by strfnc_getlasterror().
| ErrorType getLastErrorType | ( | ) |
Return the last error type, which was catched by the getErrorType() function.
Definition at line 134 of file error.cpp.
References nLastErrorType.
Referenced by strfnc_getlasterror().
| Assertion _assertionHandler |
Definition at line 27 of file error.cpp.
Referenced by FlowCtrl::calc(), FlowCtrl::compile(), NumeRe::StringParser::evalAndFormat(), Procedure::execute(), NumeReKernel::MainLoop(), performMatrixOperation(), Procedure::ProcCalc(), and FlowCtrl::updateTestStats().
|
static |
Definition at line 29 of file error.cpp.
Referenced by getErrorType(), and getLastErrorType().
|
static |
Definition at line 28 of file error.cpp.
Referenced by getErrorType(), and getLastErrorMessage().