Exception: EVSS::ServiceException

Inherits:
Common::Exceptions::BaseError show all
Defined in:
lib/evss/service_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'lib/evss/service_exception.rb', line 7

def key
  @key
end

#messagesObject (readonly)

Returns the value of attribute messages.



7
8
9
# File 'lib/evss/service_exception.rb', line 7

def messages
  @messages
end