ValidationError extends Error
Table of Contents
Methods
- __construct() : mixed
- getFailedValidator() : ValidatorInterface|null
- hasCode() : bool
- setCode() : static
- setFailedValidator() : static
Methods
__construct()
public
__construct(mixed $message[, mixed $code = 0 ][, mixed $customData = null ][, ValidatorInterface|null $failedValidator = null ]) : mixed
Parameters
- $message : mixed
- $code : mixed = 0
- $customData : mixed = null
- $failedValidator : ValidatorInterface|null = null
getFailedValidator()
public
getFailedValidator() : ValidatorInterface|null
Return values
ValidatorInterface|nullhasCode()
public
hasCode() : bool
Return values
boolsetCode()
public
setCode(int|string $code) : static
Parameters
- $code : int|string
Return values
staticsetFailedValidator()
public
setFailedValidator(ValidatorInterface $failedValidator) : static
Parameters
- $failedValidator : ValidatorInterface