37338-vm/lib/WorkflowExceptions.php
2026-01-10 21:10:13 +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;
}
}