Segment::error()
Throws an exception for an access to an invalid method
Segment::error()
has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
Segment::error(mixed $data, string $name, string $label): void
Parameters
Name | Type | Default | Description |
---|---|---|---|
$datarequired | mixed |
no default value | Variable on which the access was tried |
$namerequired | string |
no default value | Name of the method/property that was accessed |
$labelrequired | string |
no default value | Type of the name (method , property or method/property ) |
Exceptions
Type | Description |
---|---|
Kirby\Exception\BadMethodCallException |