Skip to content

Commit

Permalink
feat: custom error types.
Browse files Browse the repository at this point in the history
Add custom error types for all errors generated in the library.

Signed-off-by: José Guilherme Vanz <[email protected]>
  • Loading branch information
jvanz committed Nov 23, 2023
1 parent 30e22b0 commit bb605e3
Show file tree
Hide file tree
Showing 15 changed files with 265 additions and 172 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
69 changes: 69 additions & 0 deletions src/errors.rs
5 changes: 2 additions & 3 deletions src/fetcher.rs
33 changes: 24 additions & 9 deletions src/https.rs
43 changes: 22 additions & 21 deletions src/lib.rs
3 changes: 2 additions & 1 deletion src/policy.rs
86 changes: 42 additions & 44 deletions src/registry/mod.rs
37 changes: 16 additions & 21 deletions src/sources.rs
27 changes: 14 additions & 13 deletions src/store/mod.rs
5 changes: 3 additions & 2 deletions src/store/path/default.rs
4 changes: 2 additions & 2 deletions src/store/path/windows.rs
25 changes: 14 additions & 11 deletions src/verify/config.rs
58 changes: 28 additions & 30 deletions src/verify/mod.rs
37 changes: 24 additions & 13 deletions src/verify/verification_constraints.rs
4 changes: 2 additions & 2 deletions tests/sources.rs

0 comments on commit bb605e3

Please sign in to comment.