Skip to content

Kirby 3.8.4

Segment::error()

Throws an exception for an access to an invalid method

Segment::error(mixed $data, string $name, string $label): void

Parameters

Name Type Default Description
$data * mixed Variable on which the access was tried
$name * string Name of the method/property that was accessed
$label * string Type of the name (method, property or method/property)

Exceptions

Parent class

Kirby\Query\Segment