MatchReplaceError
Less than 1 minute
MatchReplaceError
Exception thrown when a match-and-replace operation fails.
class MatchReplaceError extends \Hazaar\ExceptionExtends: Hazaar\Exception
This typically indicates that a pattern replacement routine could not complete due to invalid input, unsupported state, or lower-level errors.
Methods
__construct
Create a new match-replace error exception.
public __construct(int $code = 400, ?\Throwable $previousException): voidParameters
| Parameter | Type | Description |
|---|---|---|
$code | int | error/status code associated with the failure |
$previousException | Throwable | previous exception for chaining |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000