Exception: Endpoints::Uuids::Search::CriteriaInvalid
- Inherits:
-
Core::Service::Error
- Object
- StandardError
- Core::Service::Error
- Endpoints::Uuids::Search::CriteriaInvalid
- Defined in:
- app/api/endpoints/uuids.rb
Instance Method Summary collapse
- #api_error(response) ⇒ Object
-
#initialize(*args) ⇒ CriteriaInvalid
constructor
A new instance of CriteriaInvalid.
Methods included from Core::Service::Error::Behaviour
Constructor Details
#initialize(*args) ⇒ CriteriaInvalid
Returns a new instance of CriteriaInvalid.
30 31 32 33 |
# File 'app/api/endpoints/uuids.rb', line 30 def initialize(*args) super @errors = { lookup: [] } end |
Instance Method Details
#api_error(response) ⇒ Object
35 36 37 |
# File 'app/api/endpoints/uuids.rb', line 35 def api_error(response) response.content_error(422, @errors) end |