FailOnException
class FailOnException
Properties
| protected Throwable, mixed): bool | $callback | The truth-test callback to determine if the job should fail. |
Methods
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
at line 24
__construct(Closure|array $callback)
Create a middleware instance.
at line 39
protected Closure
failForExceptions(array $exceptions)
Indicate that the job should fail if it encounters the given exceptions.
at line 57
mixed
handle(mixed $job, callable $next)
Mark the job as failed if an exception is thrown that passes a truth-test callback.