YAMLInvalid
Less than 1 minute
YAMLInvalid
Exception thrown when invalid YAML is encountered during parsing.
class YAMLInvalid extends \Hazaar\Parser\Exception\ExceptionThis exception is used to indicate that the provided YAML input could not be parsed due to syntax or structural errors.
Methods
__construct
Constructs a new YAMLInvalid exception.
public __construct(string $message = 'The provided YAML is invalid.', int $code = 500, ?\Throwable $previous): voidParameters
| Parameter | Type | Description |
|---|---|---|
$message | string | Optional custom error message (default: 'The provided YAML is invalid.'). |
$code | int | optional error code (default: 500) |
$previous | \Throwable | optional previous exception for chaining |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000