Class: Smith::Workflow::Composite::ErrorEvidence

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/workflow/composite/error_evidence.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(error) ⇒ Object



16
# File 'lib/smith/workflow/composite/error_evidence.rb', line 16

def self.call(error) = new(error).call

Instance Method Details

#callObject



18
19
20
21
22
23
24
25
# File 'lib/smith/workflow/composite/error_evidence.rb', line 18

def call
  Error.new(
    class_name: error_class_name,
    family: error_family,
    retryable: retryable_error?,
    kind: error_kind
  )
end