class BatchCanceled (View source)
Create a new event instance.
__construct(Batch $batch, Throwable|null $exception = null)
The batch instance.
The exception that caused the cancellation.