Exception: JSONAPI::Exceptions::InvalidLinksObject

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



282
283
284
285
286
287
288
289
# File 'lib/jsonapi/exceptions.rb', line 282

def errors
  [create_error_object(code: JSONAPI::INVALID_LINKS_OBJECT,
                       status: :bad_request,
                       title: I18n.translate('jsonapi-resources.exceptions.invalid_links_object.title',
                                             default: 'Invalid Links Object'),
                       detail: I18n.translate('jsonapi-resources.exceptions.invalid_links_object.detail',
                                              default: 'Data is not a valid Links Object.'))]
end