-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Currently exceptions thrown by adapters are passed up to the consumer. Other abstraction libraries like flysystem
convert exceptions thrown by the adapters to their own, enabling consumers to switch adapters without changing try { ... } catch { ... }
blocks.
I'd suggest creating an overall ExceptionInterface
to identify exceptions coming from this library, then broad classes of exceptions with codes matching the HTTP status. Something like:
ClientException
- ie a 400 error; the currentDocumentNotFoundException
could extend itServerException
- 500, 504, etc
Thoughts?
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation