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
| Name | Type | Description |
|---|---|---|
| $code | string | |
| $message | string |