Exception: Quonfig::Errors::TypeMismatchError

Inherits:
Quonfig::Error
  • Object
show all
Defined in:
lib/quonfig/errors/type_mismatch_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, expected, actual_value) ⇒ TypeMismatchError

Returns a new instance of TypeMismatchError.



6
7
8
# File 'lib/quonfig/errors/type_mismatch_error.rb', line 6

def initialize(key, expected, actual_value)
  super("Quonfig value for key '#{key}' expected #{expected}, got #{actual_value.class}: #{actual_value.inspect}")
end