|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Structured runtime error. More...
#include <Interpreter_Runtime.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 RUN004. | |
| std::string | message |
| Human-readable runtime message. | |
| Source_Span | span |
| Source region associated with the failure. | |
Structured runtime error.
Runtime failures are reported as values instead of exceptions so callers can render, transform, or ignore them as needed. When available, span points to the HIR node that triggered the failure.
Definition at line 158 of file Interpreter_Runtime.H.
|
inlinenoexcept |
Returns whether this error object is populated.
Definition at line 165 of file Interpreter_Runtime.H.
References Aleph::blossom_maximum_cardinality_matching(), code, and message.
| std::string Aleph::Interpreter_Runtime_Error::code |
Stable runtime code such as RUN004.
Definition at line 160 of file Interpreter_Runtime.H.
Referenced by Aleph::Compiler_Driver::append_run_failure_if_needed(), Aleph::Compiler_Generic_Driver::append_run_failure_if_needed(), and has_error().
| std::string Aleph::Interpreter_Runtime_Error::message |
Human-readable runtime message.
Definition at line 161 of file Interpreter_Runtime.H.
Referenced by Aleph::Compiler_Driver::append_run_failure_if_needed(), Aleph::Compiler_Generic_Driver::append_run_failure_if_needed(), and has_error().
| Source_Span Aleph::Interpreter_Runtime_Error::span |
Source region associated with the failure.
Definition at line 162 of file Interpreter_Runtime.H.