PropertyException
Less than 1 minute
PropertyException
Exception thrown when there is an issue with a typed property in a Model.
class PropertyException extends \Hazaar\Model\Exception\CallerException implements \JsonSerializableThis exception extends CallerException to provide context about where the error occurred, specifically identifying the class and property name involved in the failure.
Properties
propertyName
The name of the property that caused the exception.
private string $propertyNameMethods
__construct
Constructs a new PropertyException.
public __construct(string $class, string $propertyName, string $reason): voidParameters
| Parameter | Type | Description |
|---|---|---|
$class | string | the name of the class containing the property |
$propertyName | string | the name of the property that caused the exception |
$reason | string | the reason for the exception |
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 Tue, 21 Apr 2026 04:00:23 +0000