Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Interpreter_Runtime_Error Struct Reference

Structured runtime error. More...

#include <Interpreter_Runtime.H>

Collaboration diagram for Aleph::Interpreter_Runtime_Error:
[legend]

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.
 

Detailed Description

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.

Member Function Documentation

◆ has_error()

bool Aleph::Interpreter_Runtime_Error::has_error ( ) const
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.

Member Data Documentation

◆ code

std::string Aleph::Interpreter_Runtime_Error::code

◆ message

std::string Aleph::Interpreter_Runtime_Error::message

◆ span

Source_Span Aleph::Interpreter_Runtime_Error::span

Source region associated with the failure.

Definition at line 162 of file Interpreter_Runtime.H.


The documentation for this struct was generated from the following file: