Exception: JSONAPI::Exceptions::MissingKey
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Attribute Summary
Attributes inherited from Error
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
#errors ⇒ Object
446 447 448 449 450 451 452 453 |
# File 'lib/jsonapi/exceptions.rb', line 446 def errors [create_error_object(code: JSONAPI::KEY_ORDER_MISMATCH, status: :bad_request, title: I18n.translate('jsonapi-resources.exceptions.missing_key.title', default: 'A key is required'), detail: I18n.translate('jsonapi-resources.exceptions.missing_key.detail', default: 'The resource object does not contain a key.'))] end |