Sarek_interp.Interp_error
type error =
| Unbound_variable of {
name : string;
context : string;
}
| Type_conversion_error of {
from_type : string;
to_type : string;
| Array_bounds_error of {
array_name : string;
index : int;
length : int;
| Unknown_intrinsic of {
| Unknown_function of {
| Pattern_match_failure of {
| Not_an_array of {
expr : string;
| Not_a_record of {
| Unsupported_operation of {
operation : string;
reason : string;
| BSP_deadlock of {
message : string;
Interpreter-specific errors
exception Interpreter_error of error
val error_to_string : error -> string
Convert error to human-readable string
val raise_error : error -> 'a
Raise an interpreter error