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
1 changed files with 1 additions and 5 deletions

View File

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