21#include <source_location>
25#define ERRPRAEFIX "leo"
50 const std::string & p_details =
"" ,
51 const std::source_location p_location = std::source_location::current()
56 const std::string & p_details =
"" ,
57 const std::source_location p_location = std::source_location::current()
void panicExit()
Panic exit( EC_PANIC ).
Definition: error.cpp:103
OpError
Operator error code enum.
Definition: error.h:29
@ undefinedresult
PS operator error undefinedresult.
Definition: error.h:36
@ invalidexit
PS operator error invalidexit.
Definition: error.h:30
@ unmatchedmark
PS operator error unmatchedmark.
Definition: error.h:34
@ typecheck
PS operator error typecheck.
Definition: error.h:33
@ rangecheck
PS operator error rangecheck.
Definition: error.h:31
@ dictstackunderflow
PS operator error dictstackunderflow.
Definition: error.h:35
@ undefined
PS operator error undefined.
Definition: error.h:37
@ stackunderflow
PS operator error stackunderflow.
Definition: error.h:32
InError
Interpreter error code enum.
Definition: error.h:41
@ parsererror
explicit or implicit error from pass 1
Definition: error.h:43
@ cmdline
command line usage error
Definition: error.h:42
@ semantics
infinite nesting of arrays; infinite loop loading values from dictionary;
Definition: error.h:44
@ internal
float formating; context not initialized; counter less than zero; non dictionary object on dictionary...
Definition: error.h:45
void inErrExit(InError p_err, const std::string &p_details="", const std::source_location p_location=std::source_location::current())
Interpreter error message to interpreter cout_ and exit( EC_INTERPRETER / EC_CMDLINE ).
Definition: error.cpp:71
void opErrExit(OpError p_err, const std::string &p_details="", const std::source_location p_location=std::source_location::current())
Operator error message to interpreter cout_ and exit( EC_OPERATOR ).
Definition: error.cpp:28