MediaWiki REL1_37
|
Error reporting for ParamValidator. More...
Public Member Functions | |
__construct (DataMessageValue $failureMessage, $name, $value, $settings, Throwable $previous=null) | |
getFailureMessage () | |
Fetch the validation failure message. | |
getParamName () | |
Fetch the parameter name that failed validation. | |
getParamValue () | |
Fetch the parameter value that failed validation. | |
getSettings () | |
Fetch the settings array that failed validation. | |
Protected Attributes | |
DataMessageValue | $failureMessage |
string | $paramName |
mixed | $paramValue |
array | $settings |
Error reporting for ParamValidator.
@newable
Definition at line 16 of file ValidationException.php.
Wikimedia\ParamValidator\ValidationException::__construct | ( | DataMessageValue | $failureMessage, |
$name, | |||
$value, | |||
$settings, | |||
Throwable | $previous = null |
||
) |
DataMessageValue | $failureMessage | Failure message. |
string | $name | Parameter name being validated |
mixed | $value | Value of the parameter |
array | $settings | Settings array being used for validation |
Throwable | null | $previous | Previous throwable causing this failure |
Definition at line 38 of file ValidationException.php.
References Wikimedia\ParamValidator\ValidationException\$failureMessage, Wikimedia\ParamValidator\ValidationException\$settings, Wikimedia\Message\DataMessageValue\getCode(), and Wikimedia\Message\DataMessageValue\getData().
Wikimedia\ParamValidator\ValidationException::getFailureMessage | ( | ) |
Fetch the validation failure message.
Users are encouraged to use this with an appropriate message formatter rather than relying on the limited English text returned by getMessage().
Definition at line 63 of file ValidationException.php.
References Wikimedia\ParamValidator\ValidationException\$failureMessage.
Referenced by MediaWiki\Api\Validator\ApiParamValidator\convertValidationException(), MediaWiki\Rest\Validator\Validator\validateParams(), and Wikimedia\ParamValidator\ParamValidator\validateValue().
Wikimedia\ParamValidator\ValidationException::getParamName | ( | ) |
Fetch the parameter name that failed validation.
Definition at line 71 of file ValidationException.php.
References Wikimedia\ParamValidator\ValidationException\$paramName.
Referenced by MediaWiki\Rest\Validator\Validator\validateParams().
Wikimedia\ParamValidator\ValidationException::getParamValue | ( | ) |
Fetch the parameter value that failed validation.
Definition at line 79 of file ValidationException.php.
References Wikimedia\ParamValidator\ValidationException\$paramValue.
Referenced by MediaWiki\Rest\Validator\Validator\validateParams().
Wikimedia\ParamValidator\ValidationException::getSettings | ( | ) |
Fetch the settings array that failed validation.
Definition at line 87 of file ValidationException.php.
References Wikimedia\ParamValidator\ValidationException\$settings.
|
protected |
Definition at line 19 of file ValidationException.php.
Referenced by Wikimedia\ParamValidator\ValidationException\__construct(), and Wikimedia\ParamValidator\ValidationException\getFailureMessage().
|
protected |
Definition at line 22 of file ValidationException.php.
Referenced by Wikimedia\ParamValidator\ValidationException\getParamName().
|
protected |
Definition at line 25 of file ValidationException.php.
Referenced by Wikimedia\ParamValidator\ValidationException\getParamValue().
|
protected |
Definition at line 28 of file ValidationException.php.
Referenced by Wikimedia\ParamValidator\ValidationException\__construct(), and Wikimedia\ParamValidator\ValidationException\getSettings().