Exception: JSONAPI::Exceptions::SaveFailed
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#errors ⇒ Object
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 |