Final Class Yiisoft\Validator\Exception\RuleHandlerNotFoundException
| Inheritance | Yiisoft\Validator\Exception\RuleHandlerNotFoundException » RuntimeException |
|---|
An exception used by {@see RuleHandlerContainer} for the case when a given class name was not found in the container.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Validator\Exception\RuleHandlerNotFoundException |
Method Details
| 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,
);
}
Signup or Login in order to comment.