lib/danica/exception.rb in danica-2.7.1 vs lib/danica/exception.rb in danica-2.7.2
- old
+ new
@@ -1,6 +1,17 @@
class Danica::Exception < ::Exception
class NotDefined < self; end
class FormattedNotFound < self; end
class NotImplemented < self; end
+ class InvalidInput < self
+ attr_reader :value
+ def initialize(value)
+ @value = value
+ super
+ end
+
+ def message
+ "invalid input class #{value.class}"
+ end
+ end
end