Module: Substation::Processor::Fallible

Included in:
Incoming, Pivot
Defined in:
lib/substation/processor.rb

Overview

Supports Substation::Processor instances with a defined failure Chain

Instance Method Summary collapse

Instance Method Details

#with_failure_chain(chain) ⇒ #call

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return a new processor with chain as failure_chain

Parameters:

  • chain (#call)

    the failure chain to use for the new processor

Returns:

  • (#call)


188
189
190
# File 'lib/substation/processor.rb', line 188

def with_failure_chain(chain)
  self.class.new(name, handler, config.with_failure_chain(chain))
end