doc: Rewrite section on error handling in libraries
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
3d8fef0688
commit
29b04a269a
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue