PropertyAttributeException
Less than 1 minute
PropertyAttributeException
Exception thrown when there is an issue with a property attribute.
class PropertyAttributeException extends \Hazaar\Model\Exception\PropertyExceptionExtends: Hazaar\Model\Exception\PropertyException
This exception is used to indicate that a specific property within a class has encountered an error related to its attributes or type definition, providing a specific reason for the failure.
Properties
attribute
The attribute object that caused the exception.
private Base $attributeType: Hazaar\Model\Attribute\Base
Methods
__construct
Constructs a new PropertyAttributeException.
public __construct(string $class, string $propertyName, Base $attribute): 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 |
$attribute | Hazaar\Model\Attribute\Base | the attribute object that caused the exception |
getAttribute
Retrieves the attribute associated with the exception.
public getAttribute(): BaseReturns: Hazaar\Model\Attribute\Base
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000