Exception: JSONAPI::Exceptions::InvalidPageObject

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

Instance Method Summary collapse

Instance Method Details

#errorsObject


435
436
437
438
439
440
441
442
# File 'lib/jsonapi/exceptions.rb', line 435

def errors
  [JSONAPI::Error.new(code: JSONAPI::INVALID_PAGE_OBJECT,
                      status: :bad_request,
                      title: I18n.translate('jsonapi-resources.exceptions.invalid_page_object.title',
                                            default: 'Invalid Page Object'),
                      detail: I18n.translate('jsonapi-resources.exceptions.invalid_page_object.detail',
                                             default: 'Invalid Page Object.'))]
end