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

Structured runtime error produced by the bytecode VM. More...

#include <Bytecode_Interpreter.H>

Collaboration diagram for Aleph::Compiler_Bytecode_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 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.
 

Detailed Description

Structured runtime error produced by the bytecode VM.

Definition at line 245 of file Bytecode_Interpreter.H.

Member Function Documentation

◆ has_error()

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

Member Data Documentation

◆ code

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().

◆ function_name

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.

◆ message

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().

◆ pc

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.

◆ span

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().


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