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



542
543
544
545
546
547
548
549
# File 'lib/jsonapi/exceptions.rb', line 542

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