Exception: Kwalify::CommandOptionError

Inherits:
KwalifyError
  • Object
show all
Defined in:
lib/kwalify/main.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, option, error_symbol) ⇒ CommandOptionError

Returns a new instance of CommandOptionError.



18
19
20
21
22
# File 'lib/kwalify/main.rb', line 18

def initialize(message, option, error_symbol)
  super(message)
  @option = option
  @error_symbol = error_symbol
end

Instance Attribute Details

#error_symbolObject (readonly)

Returns the value of attribute error_symbol.



23
24
25
# File 'lib/kwalify/main.rb', line 23

def error_symbol
  @error_symbol
end

#optionObject (readonly)

Returns the value of attribute option.



23
24
25
# File 'lib/kwalify/main.rb', line 23

def option
  @option
end