Commit 055b7399 authored by Ian Jackson's avatar Ian Jackson
Browse files

Provide ErrorKind::Other

parent 4bff33c3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -532,6 +532,16 @@ pub enum ErrorKind {
    /// our [bug tracker](https://gitlab.torproject.org/tpo/core/arti/-/issues).
    #[display(fmt = "internal error (bug)")]
    Internal,

    /// Unclassified error
    ///
    /// Some other error occurred, which does not fit into any of the other kinds.
    ///
    /// This kind is provided for use by external code
    /// hooking into or replacing parts of Arti.
    /// It is never returned by the code in Arti (`arti-*` and `tor-*` crates).
    #[display(fmt = "unclassified error")]
    Other,
}

/// Errors that can be categorized as belonging to an [`ErrorKind`]