Skip to main content

try_register_error_hook

Function try_register_error_hook 

Source
pub fn try_register_error_hook(
    callback: fn(ErrorContext<'_>),
) -> Result<(), &'static str>
Expand description

Attempt to register a callback function to be called when errors are created.

Returns an error if a hook is already registered.