PropertyException
Less than 1 minute
PropertyException
Exception thrown when there is an issue with a typed property in a Model.
This exception extends CallerException to provide context about where the error occurred, specifically identifying the class and property name involved in the failure.
Properties
class
private string $classpropertyName
private string $propertyNameMethods
__construct
public __construct(string $class, string $propertyName, string $reason): voidParameters
| Parameter | Type | Description |
|---|---|---|
$class | string | |
$propertyName | string | |
$reason | string |
getClass
Get the name of the class associated with the exception.
public getClass(): stringgetPropertyName
Get the name of the property that caused the exception.
public getPropertyName(): stringjsonSerialize
Specify data which should be serialized to JSON.
public jsonSerialize(): voidGenerated by Hazaar API Doc Generator on Wed, 07 Jan 2026 11:29:59 +0000