Exception: Chieftain::ParameterError
- Inherits:
-
CommandError
- Object
- StandardError
- CommandError
- Chieftain::ParameterError
- Defined in:
- lib/chieftain/exceptions.rb
Overview
A command error class relating specifically to a parameter.
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Instance Method Summary collapse
-
#initialize(message, parameter) ⇒ ParameterError
constructor
A new instance of ParameterError.
Constructor Details
#initialize(message, parameter) ⇒ ParameterError
Returns a new instance of ParameterError.
11 12 13 14 |
# File 'lib/chieftain/exceptions.rb', line 11 def initialize(, parameter) super() @parameter = parameter end |
Instance Attribute Details
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
15 16 17 |
# File 'lib/chieftain/exceptions.rb', line 15 def parameter @parameter end |