Exception: JSONAPI::Exceptions::SaveFailed

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



309
310
311
312
313
314
# File 'lib/jsonapi/exceptions.rb', line 309

def errors
  [JSONAPI::Error.new(code: JSONAPI::SAVE_FAILED,
                      status: :unprocessable_entity,
                      title: 'Save failed or was cancelled',
                      detail: 'Save failed or was cancelled')]
end