Exception: Chieftain::ParameterError

Inherits:
CommandError
  • Object
show all
Defined in:
lib/chieftain/exceptions.rb

Overview

A command error class relating specifically to a parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, parameter)
  super(message)
  @parameter = parameter
end

Instance Attribute Details

#parameterObject (readonly)

Returns the value of attribute parameter.



15
16
17
# File 'lib/chieftain/exceptions.rb', line 15

def parameter
  @parameter
end