anthony0br / DocumentService

https://anthony0br.github.io/DocumentService/
MIT License
13 stars 1 forks source link

Improve error handling - Ok and Err subtypes with error enums #24

Closed anthony0br closed 1 month ago

anthony0br commented 1 month ago

Take inspiration from rust. Adding a second type parameter to result will explicitly declare all of the types of errors that can be returned in the type definition.

Remove errorMessage, it's tedious and pointless.