doc: Rewrite section on error handling in libraries

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-04-26 16:15:34 +02:00
parent 3d8fef0688
commit 29b04a269a

View file

@ -63,12 +63,8 @@ think hard whether this is really necessary.
### Library error types/kinds ### Library error types/kinds
Libraries must use "error-chain" to create error types and kinds. Libraries must use "failure" to create error objects.
Most likely, a library needs some kinds for wrapping the errors from underlying
libraries, such as the store itself.
A library must _never_ introduce multiple error types, but is free to introduce
as many error kinds as required.
### Libraries with commandline frontends ### Libraries with commandline frontends