Exception: SpreeCmCommissioner::Integrations::ExternalClientError
- Inherits:
-
StandardError
- Object
- StandardError
- SpreeCmCommissioner::Integrations::ExternalClientError
- Defined in:
- app/errors/spree_cm_commissioner/integrations/external_client_error.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code = nil) ⇒ ExternalClientError
constructor
A new instance of ExternalClientError.
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(, status_code = nil) super() @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (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 |