lib/surrealist/exception_raiser.rb
# Raises ArgumentError if a key defined in the schema does not have a corresponding
# method on the object.
#
# @raise Surrealist::UndefinedMethodError
Raises ArgumentError if a key defined in the schema does not have a corresponding
method on the object.
Raises ArgumentError if a key defined in the schema does not have a corresponding method on the object .
def raise_invalid_key!(err)
        raise Surrealist::UndefinedMethodError,
              "#{err.message}. You have probably defined a key " \
              "in the schema that doesn't have a corresponding method.",
              err.backtrace
      end
def raise_invalid_key! ( err ) raise Surrealist :: UndefinedMethodError , "#{err.message}. You have probably defined a key " "in the schema that doesn't have a corresponding method." , err . backtrace end
Raises ArgumentError if a key defined in the schema does not have a corresponding
method on the object.
Raises ArgumentError if a key defined in the schema does not have a corresponding method on the object .
None
err
<not_specific>