openactive / open-booking-api

Repository for the Open Booking API specification
Other
2 stars 3 forks source link

Extend OpenBookingError to handle internal exceptions #142

Closed nickevansuk closed 3 years ago

nickevansuk commented 4 years ago

Add errors: InternalApplicationError, InternalLibraryError and InternalLibraryConfigurationError as subclasses of InternalOpenBookingError, which subclasses OpenBookingError. This allows implementations to throw unexpected exceptions and report their origin (e.g from the Open Booking SDK, or from application code).

nickevansuk commented 4 years ago

(in .NET, InternalOpenBookingException could be used to wrap InternalOpenBookingError and its subclasses, to allow it to be caught and logged separately)