Leonardus
Functions
error.cpp File Reference

Implementation of error handling. More...

#include <string>
#include <cstdlib>
#include <unistd.h>
#include <cstring>
#include "error.h"
#include "dry.h"
#include "interpreter.h"
+ Include dependency graph for error.cpp:

Functions

void opErrExit (OpError p_err, const std::string &p_details, const std::source_location p_location)
 Operator error message to interpreter cout_ and exit( EC_OPERATOR ).
 
void inErrExit (InError p_err, const std::string &p_details, const std::source_location p_location)
 Interpreter error message to interpreter cout_ and exit( EC_INTERPRETER / EC_CMDLINE ).
 
void panicExit ()
 Panic exit( EC_PANIC ).
 

Detailed Description

Implementation of error handling.