Exception: EVSS::PPIU::ServiceException
- Inherits:
-
LoggedServiceException
- Object
- StandardError
- Common::Exceptions::BaseError
- ServiceException
- LoggedServiceException
- EVSS::PPIU::ServiceException
- Defined in:
- lib/evss/ppiu/service_exception.rb
Constant Summary collapse
- ERROR_MAP =
{ fraud: 'evss.ppiu.potential_fraud', flashes: 'evss.ppiu.account_flagged', exception: 'evss.external_service_unavailable', service: 'evss.external_service_unavailable', cnp: 'evss.ppiu.unprocessable_entity', indicators: 'evss.ppiu.unprocessable_entity', modelvalidators: 'evss.ppiu.unprocessable_entity', default: 'common.exceptions.internal_server_error' }.freeze
Instance Attribute Summary
Attributes inherited from ServiceException
Instance Method Summary collapse
- #errors ⇒ Object
- #i18n_key ⇒ Object private
Methods inherited from LoggedServiceException
Methods inherited from ServiceException
#error_key, #initialize, #messages_has_key?
Methods inherited from Common::Exceptions::BaseError
#i18n_data, #i18n_field, #i18n_interpolated, #log_to_sentry?, #message, #sentry_type, #status_code
Constructor Details
This class inherits a constructor from EVSS::LoggedServiceException
Instance Method Details
#errors ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/evss/ppiu/service_exception.rb', line 19 def errors Array( Common::Exceptions::SerializableError.new( i18n_data.merge(source: 'EVSS::PPIU::Service', meta: { messages: @messages }) ) ) end |
#i18n_key ⇒ Object (private)
29 30 31 |
# File 'lib/evss/ppiu/service_exception.rb', line 29 def i18n_key @key end |