Exception: Aho::Api::InvalidTypeError
- Defined in:
- lib/aho/errors.rb
Instance Method Summary collapse
-
#initialize(field_name, expected_type, value) ⇒ InvalidTypeError
constructor
A new instance of InvalidTypeError.
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 |