mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
516 B
516 B
Errors should be handled differently in an application versus a library
Error handling should be approached differently depending on the context.
- A library should focus on producing errors with meaningful context, by wrapping lower-level errors.
- An application mainly consumes errors, by deciding how they are formatted and presented to the user.
References
:programming: