Class: Smith::Workflow::FailureDetailSnapshot
- Inherits:
-
Object
- Object
- Smith::Workflow::FailureDetailSnapshot
- Extended by:
- Dry::Initializer
- Defined in:
- lib/smith/workflow/failure_detail_snapshot.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/smith/workflow/failure_detail_snapshot.rb', line 20 def call return if value.nil? snapshot = MessageValueNormalizer.new(value, label: "workflow failure details").call JSON.generate(snapshot) snapshot rescue StandardError => e { OMITTED_KEY => DiagnosticText.capture(e., max_bytes: OMITTED_REASON_BYTES) }.freeze end |