Expand description

tor-error – Support for error handling in Tor and Arti

Primarily, this crate provides the ErrorKind enum, and associated HasKind trait.

There is also some other miscellany, supporting error handling in crates higher up the dependency stack.

Macros

Create a bad API usage error, including a message like format!, and capturing this call site

Create an internal error, including a message like format!, and capturing this call site

Helper for converting an error into an bad API usage error

Helper for converting an error into an internal error

Structs

Programming error (a bug)

Wraps any Error, providing a nicely-reporting Display impl

Error type indicating that an input was incomplete, and could not be processed.

Enums

An absolute RetryTime.

Classification of an error arising from Arti’s Tor operations

A description of when an operation may be retried.

Traits

Errors that can be categorized as belonging to an ErrorKind

Trait for an error object that can tell us when the operation which generated it can be retried.

Functions

Report the error E to stderr, and exit the program