Exception: Spree::Pricing::PriceResolution::ProviderUnavailable

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spree/core/pricing/price_resolution.rb

Overview

Raised when the configured provider could not answer and the store's policy is to refuse rather than substitute a catalog price. Callers in a checkout flow turn this into a retryable failure; the catalog read path treats it as "no price".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, provider_key: nil) ⇒ ProviderUnavailable

Returns a new instance of ProviderUnavailable.



26
27
28
29
# File 'lib/spree/core/pricing/price_resolution.rb', line 26

def initialize(message = nil, provider_key: nil)
  @provider_key = provider_key
  super(message)
end

Instance Attribute Details

#provider_key ⇒ Object (readonly)

Returns the value of attribute provider_key.



24
25
26
# File 'lib/spree/core/pricing/price_resolution.rb', line 24

def provider_key
  @provider_key
end