Exception: Operations::Errors::InvalidFieldError

Inherits:
BaseException
  • Object
show all
Defined in:
lib/operations/errors/invalid_field_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(missing_method, klass, expected_class) ⇒ InvalidFieldError

Returns a new instance of InvalidFieldError.



4
5
6
# File 'lib/operations/errors/invalid_field_error.rb', line 4

def initialize(missing_method, klass, expected_class)
  super("The field #{missing_method} for class #{klass} is not a #{expected_class}.")
end