Exception: JSONAPI::Exceptions::SaveFailed

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



343
344
345
346
347
348
# File 'lib/jsonapi/exceptions.rb', line 343

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