Exception: Rager::Errors::OptionsError
- Inherits:
-
Rager::Error
- Object
- StandardError
- Rager::Error
- Rager::Errors::OptionsError
- Extended by:
- T::Sig
- Defined in:
- lib/rager/errors/options_error.rb
Instance Method Summary collapse
-
#initialize(invalid_keys:, description: nil) ⇒ OptionsError
constructor
A new instance of OptionsError.
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) = "Invalid keys #{invalid_keys.join(", ")}" += " -- #{description})" if description super() end |