Exception: Sia::Error::InvalidOptionError

Inherits:
ConfigurationError show all
Defined in:
lib/sia/error.rb

Overview

Raised when trying to set invalid option(s)

Instance Method Summary collapse

Constructor Details

#initialize(invalids, available) ⇒ InvalidOptionError

Returns a new instance of InvalidOptionError.


22
23
24
25
26
27
28
29
30
31
# File 'lib/sia/error.rb', line 22

def initialize(invalids, available)
  msg = <<~MSG
    Got invalid option(s):
      #{invalids.map(&:inspect).join("\n  ")}
    Available options:
      #{available.map(&:inspect).join("\n  ")}
  MSG

  super(msg)
end