Final Class Yiisoft\Input\Http\InputValidationException
| Inheritance | Yiisoft\ |
|---|
InputValidationException is thrown when input validation fails and contains a validation result.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| getResult() | Yiisoft\ |
Method Details
| public mixed __construct ( \ | ||
| $result | \ |
Earlier validation result. |
public function __construct(
private Result $result,
) {
parent::__construct('Input validation error.');
}
| public \ | ||
| return | \ |
Validation result. |
|---|---|---|
public function getResult(): Result
{
return $this->result;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.