class JSONAPI::Exceptions::SaveFailed

Public Instance Methods

errors() click to toggle source
# File lib/jsonapi/exceptions.rb, line 531
def errors
  [create_error_object(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