22#include <source_location>
26#define ERRPRAEFIX "leo"
62 const std::string & p_details =
"",
63 const std::source_location p_location = std::source_location::current()
73 const std::string & p_details =
"",
74 const std::source_location p_location = std::source_location::current()
82[[noreturn]]
void panicExit(
const char * p_msg1,
const char * p_msg2 =
nullptr );
OpError
Operator error code enum.
Definition error.h:30
@ undefinedresult
operator error undefinedresult
Definition error.h:39
@ ioerror
operator error ioerror
Definition error.h:43
@ invalidexit
operator error invalidexit
Definition error.h:33
@ _invalid
Represents: initialized but never changed.
Definition error.h:31
@ undefinedfilename
operator error undefinedfilename
Definition error.h:42
@ invalidfileaccess
operator error invalidfileaccess
Definition error.h:41
@ unmatchedmark
operator error unmatchedmark
Definition error.h:37
@ success
No operator error.
Definition error.h:32
@ typecheck
operator error typecheck
Definition error.h:36
@ rangecheck
operator error rangecheck
Definition error.h:34
@ dictstackunderflow
operator error dictstackunderflow
Definition error.h:38
@ undefined
operator error undefined
Definition error.h:40
@ stackunderflow
operator error stackunderflow
Definition error.h:35
InError
Interpreter error code enum.
Definition error.h:48
@ parsererror
explicit or implicit error from pass 1
Definition error.h:50
@ cmdline
command line usage error
Definition error.h:49
@ semantics
infinite nesting of arrays; infinite loop loading values from dictionary;
Definition error.h:51
@ internal
float formating; context not initialized; counter less than zero; non dictionary object on dictionary...
Definition error.h:52
void inErrExit(InError p_err, const std::string &p_details="", const std::source_location p_location=std::source_location::current())
Write interpreter error message to interpreter out file and exit( EC_INTERPRETER / EC_CMDLINE ).
Definition error.cpp:86
void panicExit(const char *p_msg1, const char *p_msg2=nullptr)
Panic exit( EC_PANIC ).
Definition error.cpp:116
void opErrExit(OpError p_err, const std::string &p_details="", const std::source_location p_location=std::source_location::current())
Write operator error message to interpreter out file and exit( EC_OPERATOR ).
Definition error.cpp:31