Exception: Common::Exceptions::AmbiguousRequest
- Defined in:
- lib/common/exceptions/ambiguous_request.rb
Overview
Ambiguous Request - the parameters passed in could not determine what query to call
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(detail) ⇒ AmbiguousRequest
constructor
A new instance of AmbiguousRequest.
Methods inherited from BaseError
#i18n_data, #i18n_field, #i18n_interpolated, #i18n_key, #log_to_sentry?, #message, #sentry_type, #status_code
Constructor Details
#initialize(detail) ⇒ AmbiguousRequest
Returns a new instance of AmbiguousRequest.
10 11 12 |
# File 'lib/common/exceptions/ambiguous_request.rb', line 10 def initialize(detail) @detail = detail end |
Instance Method Details
#errors ⇒ Object
14 15 16 |
# File 'lib/common/exceptions/ambiguous_request.rb', line 14 def errors Array(SerializableError.new(i18n_data.merge(detail: @detail))) end |