class ValidationException extends InvalidStateException

Validation error.

Constants

OPTION_MISSING

extra variables: []

PATTERN_MISMATCH

extra variables: ['value' => string, 'pattern' => string]

UNEXPECTED_VALUE

extra variables: ['value' => string, 'expected' => string]

FAILED_ASSERTION

extra variables: ['value' => string, 'assertion' => string]

UNEXPECTED_STRUCTURE_KEY

extra variables: ['value' => string, 'hint' => string]

Methods

__construct(string|null $message, array $errors = [])

No description

array
getMessages()

No description

array
getErrors()

No description

static string
formatValue($value)

No description

Details

at line 49
__construct(string|null $message, array $errors = [])

Parameters

string|null $message
array $errors

at line 59
array getMessages()

Return Value

array

at line 72
array getErrors()

Return Value

array

at line 90
static string formatValue($value)

Parameters

$value

Return Value

string