Exception: JSONAPI::Exceptions::InvalidPageObject

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

Instance Attribute Summary

Attributes inherited from Error

#error_object_overrides

Instance Method Summary collapse

Methods inherited from Error

#create_error_object, #initialize

Constructor Details

This class inherits a constructor from JSONAPI::Exceptions::Error

Instance Method Details

#errorsObject



512
513
514
515
516
517
518
519
# File 'lib/jsonapi/exceptions.rb', line 512

def errors
  [create_error_object(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