Exception: Endpoints::Uuids::Search::CriteriaInvalid

Inherits:
Core::Service::Error show all
Defined in:
app/api/endpoints/uuids.rb

Instance Method Summary collapse

Methods included from Core::Service::Error::Behaviour

included

Constructor Details

#initialize(*args) ⇒ CriteriaInvalid


29
30
31
32
# File 'app/api/endpoints/uuids.rb', line 29

def initialize(*args)
  super
  @errors = { lookup: [message] }
end

Instance Method Details

#api_error(response) ⇒ Object


34
35
36
# File 'app/api/endpoints/uuids.rb', line 34

def api_error(response)
  response.content_error(422, @errors)
end