<?php
namespace IlluminateBusEvents;
use IlluminateBusBatch;
use Throwable;
class BatchCanceled
{
/**
* Create a new event instance.
*
* @param IlluminateBusBatch $batch The batch instance.
* @param Throwable|null $exception The exception that caused the cancellation.
*/
public function __construct(
public Batch $batch,
public ?Throwable $exception = null,
) {
}
}