Exception: EVSS::ServiceException
- Inherits:
-
Common::Exceptions::BaseError
- Object
- StandardError
- Common::Exceptions::BaseError
- EVSS::ServiceException
- Defined in:
- lib/evss/service_exception.rb
Direct Known Subclasses
DisabilityCompensationForm::ServiceException, IntentToFile::ServiceException, Letters::ServiceException, LoggedServiceException
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(original_body) ⇒ ServiceException
constructor
A new instance of ServiceException.
Methods inherited from Common::Exceptions::BaseError
#errors, #log_to_sentry?, #message, #sentry_type, #status_code
Constructor Details
#initialize(original_body) ⇒ ServiceException
Returns a new instance of ServiceException.
9 10 11 12 13 |
# File 'lib/evss/service_exception.rb', line 9 def initialize(original_body) @messages = original_body['messages'] @key = error_key || 'evss.unmapped_service_exception' super end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/evss/service_exception.rb', line 7 def key @key end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
7 8 9 |
# File 'lib/evss/service_exception.rb', line 7 def @messages end |