Exception: Quonfig::Errors::TypeMismatchError
- Inherits:
-
Quonfig::Error
- Object
- StandardError
- Quonfig::Error
- Quonfig::Errors::TypeMismatchError
- Defined in:
- lib/quonfig/errors/type_mismatch_error.rb
Instance Method Summary collapse
-
#initialize(key, expected, actual_value) ⇒ TypeMismatchError
constructor
A new instance of TypeMismatchError.
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 |