Crate throw_error

Source
Expand description

A utility library for wrapping arbitrary errors, and for “throwing” errors in a way that can be caught by user-defined error hooks.

Structs§

  • A generic wrapper for any error.
  • A Future that reads the error hook that is set when it is created, and sets this as the current error hook whenever it is polled.
  • A unique identifier for an error. This is returned when you call throw, which calls a global error handler.
  • Resets the error hook to its previous state when dropped.

Traits§

  • Implements behavior that allows for global or scoped error handling.

Functions§

Type Aliases§

  • This is a result type into which any error can be converted.