HydrationException
API reference › Debug Core › Storage › HydrationException
Reports a strict JSON schema violation with its payload path.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
at() static | Creates an exception that identifies an invalid payload path and its expected value. | HydrationException |
Method details
Section titled “Method details”public static function at(string $path, string $expected): selfCreates an exception that identifies an invalid payload path and its expected value.
Parameters
| Parameter | Type | Description |
|---|---|---|
$path | string | Path of the invalid payload value. |
$expected | string | Description of the expected value. |
Returns
self: Hydration exception containing the schema violation.