Exception: JSONAPI::Exceptions::InvalidLinksObject

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

Instance Method Summary collapse

Instance Method Details

#errorsObject


208
209
210
211
212
213
214
215
# File 'lib/jsonapi/exceptions.rb', line 208

def errors
  [JSONAPI::Error.new(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