Function magnus::exception::script_error

source ·
pub fn script_error() -> ExceptionClass
Expand description

Return Ruby’s ScriptError class.

§Panics

Panics if called from a non-Ruby thread. See Ruby::exception_script_error for the non-panicking version.