Skip to main content

throw_value

Function throw_value 

Source
pub fn throw_value(val: Value) -> EvalError
Expand description

The error (throw val) raises for an already-evaluated val.

Wraps non-error values in an ExceptionInfo so try/catch always sees a Value::Error and ex-message / ex-data work uniformly inside the handler.