ValidationException
class ValidationException extends RuntimeException
Validation exception.
Properties
protected array | $errors | Validation errors. | |
protected InputInterface|null | $input | Input. |
Methods
__construct(array $errors, string $message = '', int $code = 0, Throwable|null $previous = null)
Constructor.
array
getErrors()
Returns the validation errors.
string
getMessageWithErrors()
Returns the exception message along with the validation errors.
InputInterface|null
getInput()
Returns the input.
Details
at line 47
__construct(array $errors, string $message = '', int $code = 0, Throwable|null $previous = null)
Constructor.
at line 59
array
getErrors()
Returns the validation errors.
at line 69
string
getMessageWithErrors()
Returns the exception message along with the validation errors.
at line 86
setInput(InputInterface $input)
Sets the input.
at line 96
InputInterface|null
getInput()
Returns the input.