YAMLInvalid
Less than 1 minute
YAMLInvalid
Exception thrown when invalid YAML is encountered during parsing.
class YAMLInvalid extends \Hazaar\ExceptionExtends: Hazaar\Exception
This 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 Fri, 04 Sep 2026 23:32:16 +0000