CaiWuXiTong/modules/EcommerceFinance/Exceptions/DingTalkProcessInstanceException.php

23 lines
454 B
PHP

<?php
namespace Modules\EcommerceFinance\Exceptions;
use RuntimeException;
use Throwable;
class DingTalkProcessInstanceException extends RuntimeException
{
public function __construct(
string $message,
private readonly bool $stopsRun = false,
?Throwable $previous = null,
) {
parent::__construct($message, 0, $previous);
}
public function stopsRun(): bool
{
return $this->stopsRun;
}
}