latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
10 stars 4 forks source link

Refactor Error handling #86

Closed simo5 closed 1 month ago

simo5 commented 1 month ago

Change codebase to use the customery Error and Result names instead of KError and KResult which are not familiar names in the ecosystem.

Simplify the actual code and provide more syntactic sugar features like automatic conversion of error types in some cases.

Redesign inspired by the recommendations at: https://nrc.github.io/error-docs/error-design/error-type-design.html