Exception: Spree::Pricing::PriceResolution::ProviderUnavailable
- Inherits:
-
StandardError
- Object
- StandardError
- Spree::Pricing::PriceResolution::ProviderUnavailable
- 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
-
#provider_key ⇒ Object
readonly
Returns the value of attribute provider_key.
Instance Method Summary collapse
-
#initialize(message = nil, provider_key: nil) ⇒ ProviderUnavailable
constructor
A new instance of ProviderUnavailable.
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( = nil, provider_key: nil) @provider_key = provider_key super() 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 |