Skip to content
docsv0.17.0

FieldError

One validation failure on a field: a stable machine `code` (switch on this) plus a human `message` (never parsed). Codes are a closed set: required, invalid_integer, invalid_number, invalid_boolean, below_minimum, above_maximum, too_short, too_long, pattern_mismatch, not_in_enum.

FieldError::__construct()

public function __construct(string $code, string $message):

Parameters

Parameters of __construct()
NameTypeDescription
$codestring
$messagestring