sul-dlss / folio_client

Interface for interacting with the Folio ILS API.
Other
0 stars 0 forks source link

Move custom errors into top-level module namespace #21

Closed mjgiarlo closed 1 year ago

mjgiarlo commented 1 year ago

Why was this change made? 🤔

Constants are part of the interface, and exceptions are referenced outside the UnexpectedResponse context, so I figure it makes more sense for these to be defined where they may be referenced without knowledge of implemention details (namely, the UnexpectedResponse class).

Also, rename the redundant FolioClient::FolioClientError to FolioClient::Error.

NOTE: This will be a breaking change for any consumer that directly references these error classes.

How was this change tested? 🤨

CI