Exception: JSONAPI::Exceptions::MissingKey

Inherits:
Error
  • Object
show all
Defined in:
lib/jsonapi/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#errorsObject



203
204
205
206
207
208
# File 'lib/jsonapi/exceptions.rb', line 203

def errors
  [JSONAPI::Error.new(code: JSONAPI::KEY_ORDER_MISMATCH,
                        status: :bad_request,
                        title: 'A key is required',
                        detail: 'The resource object does not contain a key.')]
end