Module libqaul_sdk::error [−][src]
Error and Result handling
libqaul
spans over a large abstraction surface, from drivers all
the way to “business logic” functions in the service API. This
makes communicating errors challenging at times. Generally, no
lower layer Error
objects are wrapped here, to avoid introducing
new dependencies in service code.
Instead, Error
attempts to provide a comprehensive set of
failures modes, that can be returned to communicate a failure,
that then needs tobe interpreted and addressed by an implementing
application. This way, it becomes easier for your service to
wrap errors, or to enumerate them more easily.
On an Error
enum, it is also possible to call help()
to
get a plain text error description of what went wrong, and what it
probably means. These are meant to simplify front-end development
and avoid having applications return arbitrary codes.
Enums
Error |
|
Type Definitions
Result |
|