0 follower

Final Class Yiisoft\Validator\Exception\RuleHandlerNotFoundException

InheritanceYiisoft\Validator\Exception\RuleHandlerNotFoundException » RuntimeException

An exception used by {@see RuleHandlerContainer} for the case when a given class name was not found in the container.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $className, integer $code 0, Throwable|null $previous null )
$className string
$code integer
$previous Throwable|null

                public function __construct(
    /**
     * @var string A class name from failed attempt of search in the container.
     */
    string $className,
    /**
     * @var int The Exception code.
     */
    int $code = 0,
    /**
     * @var Throwable|null The previous throwable used for the exception chaining.
     */
    ?Throwable $previous = null,
) {
    parent::__construct(
        sprintf(
            'Handler was not found for "%s" rule or unresolved "%s" class.',
            $className,
            $className,
        ),
        $code,
        $previous,
    );
}