class Trailblazer::Activity::Circuit::IllegalSignalError
Common reasons to raise IllegalSignalError
are
* Returning invalid signal from custom Macros * Returning invalid signal from steps which are not taskWrapped, for example: `step task: method(:validate)`
Rest assured, it won't be raised in case of below scenarios where they can return any value,
* Steps with instance method signature, for example, `step :load_user` * Steps with proc signature, for example `step ->(ctx, **){}`
Attributes
signal[R]
task[R]
Public Class Methods
new(task, signal:, outputs:, exec_context:)
click to toggle source
Calls superclass method
# File lib/trailblazer/activity/circuit.rb, line 89 def initialize(task, signal:, outputs:, exec_context:) @task = task @signal = signal message = "#{exec_context.class}: \n\t" \ "\sUnrecognized Signal `#{signal.inspect}` returned from #{task.inspect}. Registered signals are, \n" \ "- #{outputs.keys.join("\n- ")}" super(message) end