Exception: Ethon::Errors::InvalidValue
- Inherits:
-
EthonError
- Object
- StandardError
- EthonError
- Ethon::Errors::InvalidValue
- Defined in:
- lib/ethon/errors/invalid_value.rb
Overview
Raises when option is invalid.
Instance Method Summary collapse
-
#initialize(option, value) ⇒ InvalidValue
constructor
A new instance of InvalidValue.
Constructor Details
#initialize(option, value) ⇒ InvalidValue
Returns a new instance of InvalidValue.
7 8 9 |
# File 'lib/ethon/errors/invalid_value.rb', line 7 def initialize(option, value) super("The value: #{value} is invalid for option: #{option}.") end |