aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-error/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Fold UnexplainedTaskSpawnFailure into Internal.Nick Mathewson2022-02-221-9/+1
|
* Rename TorShuttingDown to ArtiShuttingDownNick Mathewson2022-02-221-1/+1
|
* Replace RemoteRefused with CircuitRefused.Nick Mathewson2022-02-221-4/+4
| | | | Also document that it's a lower-level error kind.
* Rename RemoteIdMismatch to RelayIdMismatch.Nick Mathewson2022-02-221-2/+2
|
* Fold EK::Canceled into TransientFailureNick Mathewson2022-02-221-10/+0
| | | | Also add some TODO comments in circmgr for future work.
* Fold AlreadyClosed into BadApiUsageNick Mathewson2022-02-221-5/+0
|
* Add TODOs for errorkinds we mean to fix laterNick Mathewson2022-02-221-2/+13
| | | | | Per #348, These are the cases that we meant to fix down the road, but not in 0.1.0.
* Merge remote-tracking branch 'origin/mr/335'Nick Mathewson2022-02-221-18/+39
|\
| * Edit tor-error comment to reflect shared ideasNick Mathewson2022-02-181-18/+37
| |
* | Merge branch 'error-report' into 'main'Nick Mathewson2022-02-221-0/+3
|\ \ | | | | | | | | | | | | Improve error messages from arti cli See merge request tpo/core/arti!331
| * | Provide error reporter and use it in the arti binaryIan Jackson2022-02-181-0/+3
| |/
* / Fix typosDimitris Apostolou2022-02-181-2/+2
|/
* spelling fixNick Mathewson2022-02-171-1/+1
|
* Add #[display] annotations for remaining ErrorKinds.Nick Mathewson2022-02-171-0/+2
|
* Merge branch 'remaining-errors'Nick Mathewson2022-02-171-16/+174
|\
| * Use TorConnectionFailed for failure to download directory.Nick Mathewson2022-02-171-8/+0
| |
| * Clarify state vs cache in ErrorKindNick Mathewson2022-02-171-4/+20
| |
| * Correct ErrorKinds for some tor-dirclient errors.Nick Mathewson2022-02-171-0/+8
| |
| * Rename CircuitTimeout to TorNetworkTimeout.Nick Mathewson2022-02-171-4/+5
| |
| * Rename ExitTimeout to RemoteNetworkTimeout.Nick Mathewson2022-02-171-1/+1
| |
| * Tweak documentation on ErrorKind::TransientNick Mathewson2022-02-171-5/+4
| |
| * tor-error: splitting/lumping guidelinesIan Jackson2022-02-171-0/+32
| |
| * ErrorKind::RemoteRefused: Expand on description, narrowing scopeIan Jackson2022-02-171-0/+3
| |
| * ErrorKind::Csnceled: Expand on descriptionIan Jackson2022-02-171-0/+3
| |
| * ErrorKind::CircuitTimeout: Expand on descriptionIan Jackson2022-02-171-1/+2
| |
| * ErrorKind::DirectoryExpired: Add possible deprecation notesIan Jackson2022-02-171-0/+6
| |
| * tor_error: a couple of spelling/formatting issuesNick Mathewson2022-02-161-4/+4
| |
| * Finally remove ErrorKind::TODO.Nick Mathewson2022-02-161-8/+0
| | | | | | | | Closes #322.
| * arti_client: provide Kinds for all errors.Nick Mathewson2022-02-161-0/+16
| |
| * dirmgr: implement HasKind for the easier variantsNick Mathewson2022-02-161-1/+31
| |
| * circmgr: Add a Kind for speculative guard failure.Nick Mathewson2022-02-161-0/+12
| | | | | | | | | | | | | | | | | | | | These errors should almost never be seen by the user; we should instead retry the circuit. But they _can_ be seen by the use if selecting a guard takes too long, or too many attempts. (Therefore, they aren't true "internal" errors.) I suspect that we might not want to keep this TransientFailure kind, but I'm not sure what else to do here for now.
| * Add kinds for *most* circmgr errors.Nick Mathewson2022-02-161-0/+47
| | | | | | | | There are a couple of tricky ones I'll do separately.
* | Fix typosDimitris Apostolou2022-02-171-3/+3
|/
* Make tor-proto::Error implement HasKind.Nick Mathewson2022-02-151-1/+67
| | | | | | This took some refactoring, and gave an opportunity to notice a few error variants that weren't being used, or didn't mean what they said on the tin.
* tor-cell: provide HasKind.Nick Mathewson2022-02-151-1/+9
| | | | | | | | | Additionally, refactor the IoError out of tor_cell::Error: nothing in TorCell created this; it was only used by tor_proto. This required refactoring in tor_proto to use a new error type. Here I decided to use a new CodecError for now, though we may refactor that away soon too.
* BadApiUsage: change Display impl capitalisationIan Jackson2022-02-151-1/+1
| | | | Now it maches the others
* Rename BadApiUsage from BadAPIUsageIan Jackson2022-02-151-1/+1
| | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/310#note_2777519 mutatis mutandi. And, fix a leftover instance with an old idea of what this was called.
* Make Bug from InternalError, add bad_api_usage! and into_bad_api_usage!Ian Jackson2022-02-151-0/+3
| | | | Including supporting machinery, new kind field, etc.
* New name and semantics for BadAPIUsage (was BadArgument)Ian Jackson2022-02-151-3/+10
|
* Merge branch 'warn_not_deny' into 'main'eta2022-02-141-1/+1
|\ | | | | | | | | | | | | Change deny(clippy::all) to warn(clippy::all). Closes #338 See merge request tpo/core/arti!306
| * Change deny(clippy::all) to warn(clippy::all).Nick Mathewson2022-02-141-1/+1
| | | | | | | | Closes #338.
* | Merge branch 'error-kind-protocol' into 'main'Ian Jackson2022-02-141-5/+18
|\ \ | | | | | | | | | | | | Split up ErrorKind::ProtocolViolation See merge request tpo/core/arti!312
| * | Split up ErrorKind::ProtocolViolationIan Jackson2022-02-141-5/+18
| |/
* | Merge branch 'error-kind-notimp' into 'main'Ian Jackson2022-02-141-7/+24
|\ \ | | | | | | | | | | | | Split up ErrorKind::NoSupport See merge request tpo/core/arti!311
| * | Split up ErrorKind::NoSupportIan Jackson2022-02-141-7/+24
| |/
* / Clarify ErrorKind::InvalidConfigTransitionIan Jackson2022-02-141-0/+3
|/
* Merge branch 'eta/unbootstrapped-clients' into 'main'Nick Mathewson2022-02-111-0/+4
|\ | | | | | | | | | | | | Allow creating unbootstrapped `TorClient`s (and `DirMgr`s) Closes #293 See merge request tpo/core/arti!298
| * Allow creating unbootstrapped `TorClient`s (and `DirMgr`s)eta2022-02-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes how the `TorClient` type works, enabling it to be constructed synchronously without initiating the bootstrapping process. Daemon tasks are still started on construction (although some of them won't do anything if the client isn't bootstrapped). The old bootstrap() methods are now reimplemented in terms of the new create_unbootstrapped() and bootstrap_existing() methods. This required refactoring how the `DirMgr` works to enable the same sort of thing there. closes #293
* | socksproto: Simplify Truncated handlingNick Mathewson2022-02-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the Error type to remove the yucky internal hidden Truncated variant. Instead, there's now an embedded tor_bytes::Error value. If that tor_bytes::Error is Truncated, we bubble it up when we convert our handshake result to the nested error struct. Thus there is still (sadly) a variant of tor_socksproto::Error that shouldn't be exposed to user code. But refactoring every inner method under handshake.rs seemed like a bad idea: once we're using Result<Result<..>>, the ? operator no longer helps us much.
* | Move the Truncated error into tor-errors.Nick Mathewson2022-02-111-0/+3
| |