aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-error
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-042-0/+21
| | | | | | | | | 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: provide into_internal!Ian Jackson2022-02-041-0/+33
|
* tor-error: Allow making an `InternalError` from some other errorIan Jackson2022-02-041-3/+27
| | | | | | | This can be used in call sites where an error is thought not to be possible. The `source` will be used only for formatting messages.
* tor-error: Introduce InternalError as a type and a kindIan Jackson2022-02-044-1/+148
| | | | This can contain a backtrace, which will be printed.
* tor-error: Skeleton for new crateIan Jackson2022-02-043-0/+95
As per doc/Errors.md. Currently there are no error kinds. Some will be added as we go along.