PropertyValidationException
Less than 1 minute
PropertyValidationException
Exception thrown when a property fails a validation rule in a model class.
class PropertyValidationException extends \Hazaar\Model\Exception\PropertyExceptionExtends: Hazaar\Model\Exception\PropertyException
Properties
ruleName
The name of the validation rule that failed.
private string $ruleNameType: string
Methods
__construct
Constructs a new PropertyValidationException.
public __construct(string $class, string $propertyName, string $ruleName): voidParameters
| Parameter | Type | Description |
|---|---|---|
$class | string | the name of the class containing the property |
$propertyName | string | the name of the property that failed validation |
$ruleName | string | the name of the validation rule that failed |
getRuleName
Gets the name of the validation rule that failed.
public getRuleName(): stringReturns: string
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000