EN
apps/winzik / src / Work / WorkerError.php · commit 6576d6f
<?phpnamespace App\Work;/** A job of a worker that failed (WorkerPool): its error as a value, the original exception's class and place kept as text. */final class WorkerError extends \RuntimeException{    public function __construct(string $message, public readonly string $class = '', public readonly string $at = '')    {        parent::__construct($message . ($class !== '' && !str_starts_with($class, 'Worker') ? " ($class" . ($at !== '' ? " at $at" : '') . ')' : ''));    }}