:conflict
end
- def rto_s
+ def to_s
"Changeset mismatch: Provided #{@provided} but only #{@allowed} is allowed"
end
end
end
end
+ ##
+ # raised when bounding box is invalid
+ class APIBadBoundingBox < APIError
+ def initialize(message)
+ @message = message
+ end
+
+ def status
+ :bad_request
+ end
+
+ def to_s
+ @message
+ end
+ end
+
##
# raised when an API call is made using a method not supported on that URI
class APIBadMethodError < APIError