You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add 422 Error and status_code attribute to DataCiteError-s
- add 422 Unprocessable Entity error class, resolves#89
- minor refactoring to use a defaultdict data structure to map status
codes to error classes instead of an if/elif conditional chain.
- future status codes can be supported by adding a new DataCiteError
subtype and an entry to the DataCiteErrorFactory.ERROR_CLASSES
dictionary
- includes the status code in the Error class so client code can
retrieve the status code from the raised Exception, resolves#98
defaults to DataCiteServerError for any unhandled status_code >= 500 and
DataCiteRequestError if there is not an exact match
0 commit comments