Exception: Optionoids::Errors::ExpectedMultipleKeys

Inherits:
StandardError
  • Object
show all
Defined in:
lib/optionoids/errors.rb

Overview

Custom error class to indicate that a checker expected multiple keys but none were provided

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ExpectedMultipleKeys

Returns a new instance of ExpectedMultipleKeys.



126
127
128
129
# File 'lib/optionoids/errors.rb', line 126

def initialize(message = nil)
  msg = message || 'Expected multiple keys but none were provided'
  super(msg)
end