Function throw

Source
pub fn throw<F: Into<ExtExceptionInfo>>(exception: F) -> bool
Expand description

Throws an exception which can be caught by catch.

If there is no catch invocation anywhere on the stack, this functions returns false; otherwise, it does not return. It will never return true; its return type is bool rather than () just to make it more ergonomic to use as the final statement of an exception hook.