Skip to content
PHP Ecosystem
Explore

HydrationException

API reference › Debug Core › Storage › HydrationException

final classPHPForge\Debug\Storage\HydrationException
ExtendsRuntimeException
Sourcesrc/Storage/HydrationException.php

Reports a strict JSON schema violation with its payload path.

MethodDescriptionDefined by
at() staticCreates an exception that identifies an invalid payload path and its expected value.HydrationException
public static function at(string $path, string $expected): self

Creates an exception that identifies an invalid payload path and its expected value.

Parameters

ParameterTypeDescription
$pathstringPath of the invalid payload value.
$expectedstringDescription of the expected value.

Returns

self: Hydration exception containing the schema violation.