X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2006c416d293f9281a6524722f8c48badf7379b1..df47c1305d0eff9d3dd5590362d4fee1d6ee6e28:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index 4c99de2f1..5be2da56a 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -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