lib/imw/utils/error.rb in imw-0.2.9 vs lib/imw/utils/error.rb in imw-0.2.10
- old
+ new
@@ -20,10 +20,16 @@
PathError = Class.new(Error)
# Error communicating with a remote entity.
NetworkError = Class.new(Error)
- # Error communicating with a remote entity.
+ # Raised when a resource is of the wrong scheme.
+ SchemeError = Class.new(Error)
+
+ # Raised when a resource is of the wrong (or malformed) format.
+ FormatError = Class.new(Error)
+
+ # Bad argument.
ArgumentError = Class.new(Error)
# Error in defining or matching a schema.
SchemaError = Class.new(Error)