Class: JustimmoClient::Errors::InvalidValue

Inherits:
OptionParserError
  • Object
show all
Defined in:
lib/justimmo_client/errors.rb

Overview

Raised when the option parser rejects a value

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ InvalidValue

Returns a new instance of InvalidValue.



36
37
38
# File 'lib/justimmo_client/errors.rb', line 36

def initialize(value)
  super "'#{value}' is not in the list of accepted values"
end