]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Add support for ACL blocks on note commenting
[rails.git] / lib / osm.rb
index 9e819829921f68f0b8b74c5a70f4b407b6cf0570..daef8d3f0edcb27a219c92f0fc35f05a860c1d62 100644 (file)
@@ -24,6 +24,17 @@ module OSM
     end
   end
 
+  # Raised when access is denied.
+  class APIAccessDenied < RuntimeError
+    def status
+      :forbidden
+    end
+
+    def to_s
+      "Access denied"
+    end
+  end
+
   # Raised when an API object is not found.
   class APINotFoundError < APIError
     def status