Exception: JSONAPI::Exceptions::ToManySetReplacementForbidden

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

Instance Method Summary collapse

Instance Method Details

#errorsObject


117
118
119
120
121
122
123
124
# File 'lib/jsonapi/exceptions.rb', line 117

def errors
  [JSONAPI::Error.new(code: JSONAPI::FORBIDDEN,
                      status: :forbidden,
                      title: I18n.translate('jsonapi-resources.exceptions.to_many_set_replacement_forbidden.title',
                                            default: 'Complete replacement forbidden'),
                      detail: I18n.translate('jsonapi-resources.exceptions.to_many_set_replacement_forbidden.detail',
                                             default: 'Complete replacement forbidden for this relationship'))]
end