Exception: Danica::Exception::InvalidInput
- Inherits:
-
Danica::Exception
- Object
- RuntimeError
- Danica::Exception
- Danica::Exception::InvalidInput
- Defined in:
- lib/danica/exception.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ InvalidInput
constructor
A new instance of InvalidInput.
- #message ⇒ Object
Constructor Details
#initialize(value) ⇒ InvalidInput
Returns a new instance of InvalidInput.
9 10 11 12 |
# File 'lib/danica/exception.rb', line 9 def initialize(value) @value = value super end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/danica/exception.rb', line 8 def value @value end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/danica/exception.rb', line 14 def "invalid input class #{value.class}" end |