InvalidClosure
Less than 1 minute
InvalidClosure
Exception thrown when an invalid closure is provided.
class InvalidClosure extends \Hazaar\ExceptionExtends: Hazaar\Exception
This 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 Fri, 04 Sep 2026 23:32:17 +0000