MatchReplaceError
Less than 1 minute
MatchReplaceError
Exception thrown when a match-and-replace operation fails.
class MatchReplaceError extends \Hazaar\Exception\ExceptionThis 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 Tue, 21 Apr 2026 04:00:24 +0000