|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Structured runtime error produced by the bytecode VM. More...
#include <Bytecode_Interpreter.H>
Public Member Functions | |
| bool | has_error () const noexcept |
| Returns whether this error object is populated. | |
Public Attributes | |
| std::string | code |
Stable runtime code such as BCV013. | |
| std::string | message |
| Human-readable runtime message. | |
| std::string | function_name |
| Function active at the failure point, when known. | |
| Compiler_Bytecode_PC | pc = compiler_bytecode_invalid_id() |
| Program counter active at the failure point, when known. | |
| Source_Span | span |
| Source span associated with the current instruction, when known. | |
Structured runtime error produced by the bytecode VM.
Definition at line 245 of file Bytecode_Interpreter.H.
|
inlinenoexcept |
Returns whether this error object is populated.
Definition at line 255 of file Bytecode_Interpreter.H.
References Aleph::blossom_maximum_cardinality_matching(), code, and message.
| std::string Aleph::Compiler_Bytecode_Runtime_Error::code |
Stable runtime code such as BCV013.
Definition at line 247 of file Bytecode_Interpreter.H.
Referenced by has_error(), and Aleph::Compiler_Bytecode_VM::make_error().
| std::string Aleph::Compiler_Bytecode_Runtime_Error::function_name |
Function active at the failure point, when known.
Definition at line 249 of file Bytecode_Interpreter.H.
| std::string Aleph::Compiler_Bytecode_Runtime_Error::message |
Human-readable runtime message.
Definition at line 248 of file Bytecode_Interpreter.H.
Referenced by has_error().
| Compiler_Bytecode_PC Aleph::Compiler_Bytecode_Runtime_Error::pc = compiler_bytecode_invalid_id() |
Program counter active at the failure point, when known.
Definition at line 250 of file Bytecode_Interpreter.H.
| Source_Span Aleph::Compiler_Bytecode_Runtime_Error::span |
Source span associated with the current instruction, when known.
Definition at line 251 of file Bytecode_Interpreter.H.
Referenced by Aleph::Compiler_Bytecode_VM::execute_host_call().