izzum\statemachine\utils\Utils::getExceptionForCheckingCallable PHP Метод

getExceptionForCheckingCallable() приватный статический Метод

private static getExceptionForCheckingCallable ( callable $callable, string $type, string $info, Context $context = null ) : Exception
$callable callable
$type string a type description of the callable eg: State::CALLABLE_ENTRY
$info string extra info for exception message purposes
$context izzum\statemachine\Context optional: the context the callable is called in
Результат izzum\statemachine\Exception if the callable does not pass the check
    private static function getExceptionForCheckingCallable($callable, $type, $info, $context = null)
    {
        try {
            self::checkCallable($callable, $type, $info, $context);
        } catch (\Exception $e) {
            return $e;
        }
        return null;
    }