Exception: JSONAPI::Exceptions::MissingKey

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



260
261
262
263
264
265
# File 'lib/jsonapi/exceptions.rb', line 260

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