FailOnException
class FailOnException (View source)
Properties
protected | $callback | The truth-test callback to determine if the job should fail. |
Methods
__construct($callback)
Create a middleware instance.
failForExceptions(array $exceptions)
Indicate that the job should fail if it encounters the given exceptions.
mixed
handle(mixed $job, callable $next)
Mark the job as failed if an exception is thrown that passes a truth-test callback.
Details
__construct($callback)
Create a middleware instance.
protected
failForExceptions(array $exceptions)
Indicate that the job should fail if it encounters the given exceptions.
mixed
handle(mixed $job, callable $next)
Mark the job as failed if an exception is thrown that passes a truth-test callback.