Exception: Rager::Errors::OptionsError

Inherits:
Rager::Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/rager/errors/options_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(invalid_keys:, description: nil) ⇒ OptionsError

Returns a new instance of OptionsError.



12
13
14
15
16
# File 'lib/rager/errors/options_error.rb', line 12

def initialize(invalid_keys:, description: nil)
  message = "Invalid keys #{invalid_keys.join(", ")}"
  message += " -- #{description})" if description
  super(message)
end