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

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

Instance Method Summary collapse

Methods included from T::Sig

sig

Constructor Details

#initialize(handle) ⇒ InvalidWidgetHandle

Returns a new instance of InvalidWidgetHandle.



66
67
68
69
# File 'lib/cli/ui/widgets.rb', line 66

def initialize(handle)
  super
  @handle = handle
end

Instance Method Details

#messageObject



72
73
74
75
76
# File 'lib/cli/ui/widgets.rb', line 72

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