We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f4c1a2 commit 60bdd2eCopy full SHA for 60bdd2e
1 file changed
lib/jsonapi/exceptions.rb
@@ -141,26 +141,6 @@ def errors
141
end
142
143
144
-
145
- class HasManyRelationExists < Error
146
- attr_accessor :id
147
148
- def initialize(id, error_object_overrides = {})
149
- @id = id
150
- super(error_object_overrides)
151
- end
152
153
- def errors
154
- [create_error_object(code: JSONAPI::RELATION_EXISTS,
155
- status: :bad_request,
156
- title: I18n.translate('jsonapi-resources.exceptions.has_many_relation.title',
157
- default: 'Relation exists'),
158
- detail: I18n.translate('jsonapi-resources.exceptions.has_many_relation.detail',
159
- default: "The relation to #{id} already exists.",
160
- id: id))]
161
162
163
164
class BadRequest < Error
165
def initialize(exception, error_object_overrides = {})
166
@exception = exception
0 commit comments