Exception: CLI::UI::Widgets::InvalidWidgetHandle

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/cli/ui/widgets.rb

Instance Method Summary collapse

Constructor Details

#initialize(handle) ⇒ InvalidWidgetHandle

Returns a new instance of InvalidWidgetHandle.



51
52
53
54
# File 'lib/cli/ui/widgets.rb', line 51

def initialize(handle)
  super
  @handle = handle
end

Instance Method Details

#messageObject



56
57
58
59
60
# File 'lib/cli/ui/widgets.rb', line 56

def message
  keys = Widget.available.join(',')
  "invalid widget handle: #{@handle} " \
    "-- must be one of CLI::UI::Widgets.available (#{keys})"
end