Exception: Aho::Api::InvalidTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/aho/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(field_name, expected_type, value) ⇒ InvalidTypeError



14
15
16
# File 'lib/aho/errors.rb', line 14

def initialize(field_name, expected_type, value)
  super("Invalid type for '#{field_name}'. Expected #{expected_type}, got #{value.class}")
end