lib/dor/services/client.rb in dor-services-client-8.9.0 vs lib/dor/services/client.rb in dor-services-client-9.0.0

- old
+ new

@@ -44,9 +44,13 @@ class UnauthorizedResponse < UnexpectedResponse; end # Error that is raised when the remote server returns a 409 Conflict class ConflictResponse < UnexpectedResponse; end + # Error that is raised when the remote server returns a 412 Precondition Failed. + # This occurs when you sent an etag with If-Match, but the etag didn't match the latest version + class PreconditionFailedResponse < UnexpectedResponse; end + # Error that is raised when the remote server returns a 400 Bad Request; apps should not retry the request class BadRequestError < UnexpectedResponse; end # @param object_identifier [String] the pid for the object # @raise [ArgumentError] when `object_identifier` is `nil`