]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
fixed tiny issue in german translation
[rails.git] / lib / osm.rb
index 02aa1a105306cbe3b3afa214a04c0ae151339a44..5be2da56a13c050be1d395b18ecae458ed9a0d4d 100644 (file)
@@ -112,7 +112,7 @@ module OSM
       :conflict
     end
 
-    def rto_s
+    def to_s
       "Changeset mismatch: Provided #{@provided} but only #{@allowed} is allowed"
     end
   end
@@ -218,6 +218,22 @@ module OSM
     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