X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c36f09b28db7244066df53b9e52c7ab32a1693da..7f3cb3c6246e6e271761e714cceb081e85a4d245:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index a0fcef8b9..dd273418e 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -364,6 +364,17 @@ module OSM end end + # Raised when a size limit is exceeded + class APISizeLimitExceeded < APIError + def initialize + super("Size limit exceeded") + end + + def status + :payload_too_large + end + end + # Helper methods for going to/from mercator and lat/lng. class Mercator include Math