class EXEL::Error::JobTermination

If a processor raises a JobTermination exception, the job will immediately stop running without raising anything. This is useful if you want to stop a job without triggering any kind of retry mechanism, for example.

Constants

CMDS

Attributes

cmd[R]

Public Class Methods

new(message = nil, cmd = :error) click to toggle source
Calls superclass method
# File lib/exel/error/job_termination.rb, line 13
def initialize(message = nil, cmd = :error)
  super(message)
  @cmd = CMDS.include?(cmd) ? cmd : :error
end