Exception: SpreeCmCommissioner::Integrations::ExternalClientError

Inherits:
StandardError
  • Object
show all
Defined in:
app/errors/spree_cm_commissioner/integrations/external_client_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code = nil) ⇒ ExternalClientError

Returns a new instance of ExternalClientError.



5
6
7
8
# File 'app/errors/spree_cm_commissioner/integrations/external_client_error.rb', line 5

def initialize(message, status_code = nil)
  super(message)
  @status_code = status_code
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



3
4
5
# File 'app/errors/spree_cm_commissioner/integrations/external_client_error.rb', line 3

def status_code
  @status_code
end