X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/68ea927f5b40e205d90b66f8013e0d268dff7021..40e920bd52619f549ff829296865f87f89f2fd2a:/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