Method: JSONAPI::Exceptions::SaveFailed#errors

Defined in:
lib/jsonapi/exceptions.rb

#errorsObject



424
425
426
427
428
429
430
431
# File 'lib/jsonapi/exceptions.rb', line 424

def errors
  [JSONAPI::Error.new(code: JSONAPI::SAVE_FAILED,
                      status: :unprocessable_entity,
                      title: I18n.translate('jsonapi-resources.exceptions.save_failed.title',
                                            default: 'Save failed or was cancelled'),
                      detail: I18n.translate('jsonapi-resources.exceptions.save_failed.detail',
                                             default: 'Save failed or was cancelled'))]
end