lib/rosemary/errors.rb in rosemary-0.3.4 vs lib/rosemary/errors.rb in rosemary-0.3.5
- old
+ new
@@ -7,10 +7,13 @@
@data = data
super
end
end
+ # This error occurs when the request send to the server could not be parsed.
+ class ParseError < StandardError; end
+
# This error occurs when Rosemary is instantiated without a client
class CredentialsMissing < StandardError; end
# An object was not found in the database.
class NotFound < Error; end
@@ -20,10 +23,11 @@
# The API operation wasn't authorized. This happens if you didn't set the user and
# password for a write operation.
class Unauthorized < Error; end # 401
+ # You don't have sufficient permissions to make that request.
class Forbidden < Error; end # 403
# The object was not found (HTTP 404). Generally means that the object doesn't exist
# and never has.
class NotFound < Error; end # 404
@@ -45,10 +49,12 @@
class Precondition < Error; end # 412
# Unspecified API server error.
class ServerError < Error; end # 500
+ # When the API service times out or returns an HTTP 503 status.
class Unavailable < Error; end # 503
- class NotImplemented < Error; end # This method is not implemented yet.
+ # This method is not implemented yet.
+ class NotImplemented < Error; end
end
\ No newline at end of file