38866-vm/lib/WorkflowExceptions.php
2026-02-28 13:31:11 +00:00

18 lines
524 B
PHP

<?php
class WorkflowNotFoundException extends Exception {}
class WorkflowNotAllowedException extends Exception {}
class WorkflowRuleFailedException extends Exception {}
class WorkflowEligibilityException extends Exception {
private $reasons;
public function __construct($message = "", $reasons = [], $code = 0, Throwable $previous = null) {
parent::__construct($message, $code, $previous);
$this->reasons = $reasons;
}
public function getReasons() {
return $this->reasons;
}
}