aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-error/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | tor-socksproto: Implement HasKindNick Mathewson2022-02-111-0/+25
| | | | | | | | | | (This error isn't yet wrapped in TorError, but it will be eventually when we implement socks proxy and PT support.)
* | tor-config: Add HasKind support.Nick Mathewson2022-02-091-0/+35
|/ | | | This required a few new ErrorKinds.
* Docs and clarification for a bunch of Error stuffNick Mathewson2022-02-041-9/+32
|
* Make the Error detail type non-exported from arti-clientNick Mathewson2022-02-041-0/+4
| | | | | | | | | | | At least by default, we should have Error be private, and not expose it as part of our APIs. To keep functionality in `arti`, I had to add an `ExitTimeout` error kind. For interface consistency, I also re-exported ErrorKind and HasError from `arti_client`.
* errors: ErrorKind::TODO: Fix typo in messageIan Jackson2022-02-041-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/262#note_2772816
* errors: Change docs for ErrorKind to refer to ArtiIan Jackson2022-02-041-2/+2
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/262#note_2772810
* errors: Drop "Error" and "Failed" from various enum variantsIan Jackson2022-02-041-1/+1
|
* tor-chanmgr::Error: impl HasKindIan Jackson2022-02-041-0/+8
|
* errors: Initial impl HasKind in arti-client, ErrorKind::TODOIan Jackson2022-02-041-0/+6
| | | | | | | | | This involves making a temporary ErrorKind::TODO. That will continue to exist until all errors (at least, the ones that make it out to here) can be properly categorised. Introducing this will let us work from the top and bottom towards the middle.
* spawn errors: impl HasKind for futures::SpawnErrorIan Jackson2022-02-041-0/+19
| | | | | | | | | This needs two kinds. We have decided to treat a non-shutdown SpawnError as "unexplained" rather than as an InternalError. There are many crates whose From<futures::task::SpawnError> for Error erroneously treat it as an internal error. We will fix them in a moment.
* tor_persist::Error: impl HasKind and adjust commentsIan Jackson2022-02-041-0/+25
| | | | | And change the comments to slightly reinterpret these errors, to relate to the circumstances rather than error generation site.
* tor-error: Introduce InternalError as a type and a kindIan Jackson2022-02-041-0/+8
| | | | This can contain a backtrace, which will be printed.
* tor-error: Skeleton for new crateIan Jackson2022-02-041-0/+58
As per doc/Errors.md. Currently there are no error kinds. Some will be added as we go along.