Exception: Smith::ProviderPermanentFailure
- Defined in:
- lib/smith/provider_permanent_failure.rb
Instance Attribute Summary collapse
-
#model_id ⇒ Object
readonly
Returns the value of attribute model_id.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#source_error_class ⇒ Object
readonly
Returns the value of attribute source_error_class.
Instance Method Summary collapse
-
#initialize(message, provider:, model_id:, source_error_class:) ⇒ ProviderPermanentFailure
constructor
A new instance of ProviderPermanentFailure.
Constructor Details
#initialize(message, provider:, model_id:, source_error_class:) ⇒ ProviderPermanentFailure
Returns a new instance of ProviderPermanentFailure.
9 10 11 12 13 14 |
# File 'lib/smith/provider_permanent_failure.rb', line 9 def initialize(, provider:, model_id:, source_error_class:) @provider = provider&.to_sym @model_id = model_id.to_s.dup.freeze @source_error_class = source_error_class.to_s.dup.freeze super() end |
Instance Attribute Details
#model_id ⇒ Object (readonly)
Returns the value of attribute model_id.
7 8 9 |
# File 'lib/smith/provider_permanent_failure.rb', line 7 def model_id @model_id end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
7 8 9 |
# File 'lib/smith/provider_permanent_failure.rb', line 7 def provider @provider end |
#source_error_class ⇒ Object (readonly)
Returns the value of attribute source_error_class.
7 8 9 |
# File 'lib/smith/provider_permanent_failure.rb', line 7 def source_error_class @source_error_class end |