Exception: JSONAPI::Exceptions::CountMismatch

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



237
238
239
240
241
242
# File 'lib/jsonapi/exceptions.rb', line 237

def errors
  [JSONAPI::Error.new(code: JSONAPI::COUNT_MISMATCH,
                        status: :bad_request,
                        title: 'Count to key mismatch',
                        detail: 'The resource collection does not contain the same number of objects as the number of keys.')]
end