lib/danica/exception.rb in danica-2.7.4 vs lib/danica/exception.rb in danica-2.7.5
- old
+ new
@@ -1,6 +1,8 @@
-class Danica::Exception < ::Exception
+# frozen_string_literal: true
+
+class Danica::Exception < RuntimeError
class NotDefined < self; end
class FormattedNotFound < self; end
class NotImplemented < self; end
class InvalidInput < self
attr_reader :value
@@ -12,6 +14,5 @@
def message
"invalid input class #{value.class}"
end
end
end
-