pub fn throw(error: impl Into<Error>) -> ErrorId
Invokes the error hook set by set_error_hook with the given error.
set_error_hook