PropertyEnumException
Less than 1 minute
PropertyEnumException
Exception thrown when a property value cannot be implicitly converted to the required type.
class PropertyEnumException extends \Hazaar\Model\Exception\PropertyExceptionThis exception is typically thrown by the Model class when attempting to set a property with a value type that is not supported or cannot be cast to the defined property type.
Properties
propertyType
The expected enum type of the property.
private string $propertyTypeMethods
__construct
Constructs a new PropertyEnumException.
public __construct(string $class, string $propertyName, string $propertyType, ?string $propertyEnumValue): voidParameters
| Parameter | Type | Description |
|---|---|---|
$class | string | the name of the class where the exception occurred |
$propertyName | string | the name of the property that caused the exception |
$propertyType | string | the expected enum type of the property |
$propertyEnumValue | string | the invalid value that was provided for the enum |
getPropertyType
Get the expected type of the property.
public getPropertyType(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000