InvalidClosure
Less than 1 minute
InvalidClosure
Exception thrown when an invalid closure is provided.
class InvalidClosure extends \Hazaar\Util\Exception\ExceptionThis exception is used to indicate that a closure passed to a method or operation does not meet the required criteria or is malformed.
Methods
__construct
Constructs a new InvalidClosure exception.
public __construct(string $message = 'Invalid closure provided.'): voidParameters
| Parameter | Type | Description |
|---|---|---|
$message | string | Optional. A custom error message describing the invalid closure. |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:24 +0000