Function default_error_handler

Source
pub fn default_error_handler() -> fn(_: BevyError, _: ErrorContext)
Expand description

The default error handler. This defaults to panic(), but if set, the [GLOBAL_ERROR_HANDLER] will be used instead, enabling error handler customization. The configurable_error_handler feature must be enabled to change this from the panicking default behavior, as there may be runtime overhead.