Exception: Smith::ProviderPermanentFailure

Inherits:
Error
  • Object
show all
Defined in:
lib/smith/provider_permanent_failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, 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(message)
end

Instance Attribute Details

#model_idObject (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

#providerObject (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_classObject (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