Exception: JSONAPI::Exceptions::InvalidPageObject

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



318
319
320
321
322
323
# File 'lib/jsonapi/exceptions.rb', line 318

def errors
  [JSONAPI::Error.new(code: JSONAPI::INVALID_PAGE_OBJECT,
                      status: :bad_request,
                      title: 'Invalid Page Object',
                      detail: 'Invalid Page Object.')]
end