'Does catch() still work even if we use allowFailures() in a laravel batch?

The documentation of laravel - batch failures tells us that:

When a job within a batch fails, Laravel will automatically mark the batch as "cancelled". If you wish, you may disable this behavior so that a job failure does not automatically mark the batch as cancelled. This may be accomplished by calling

So if we use allowFailures() the batch will not be marked as cancelled and will continue to function. In this case, are we still able to use the catch() and (may be) perform a picky (selectively by error) manual cancellation of the batch?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source