|
Leonardus
|
Error handling. More...
#include <string>#include <cstdint>#include <source_location>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | ERRPRAEFIX "leo" |
| Praefix for error messages of second pass. | |
Enumerations | |
| enum | OpError : std::uint8_t { invalidexit , rangecheck , stackunderflow , typecheck , unmatchedmark , dictstackunderflow , undefinedresult , undefined } |
| Operator error code enum. More... | |
| enum | InError : std::uint8_t { cmdline , parsererror , semantics , internal } |
| Interpreter error code enum. More... | |
Functions | |
| 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 ). | |
| 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 ). | |
| void | panicExit () |
| Panic exit( EC_PANIC ). | |
Error handling.
Leonardus, a minimalist stack-based programming system. Copyright (C) 2025 Andreas Muckenschnabel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
| enum InError : std::uint8_t |
Interpreter error code enum.
| enum OpError : std::uint8_t |
Operator error code enum.