PHP 8.4.0 RC4 available for testing

The SimdJsonValueError class

(PECL simdjson >= 3.0.0)

Giriş

A SimdJsonValueError is thrown when the type of an argument to a function from simdjson is correct but the value of it is incorrect. E.g. when the JSON decoding $depth is not positive or the $depth is too large.

Sınıf Sözdizimi

class SimdJsonValueError extends ValueError {
/* Miras alınan özellikler */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Miras alınan yöntemler */
final public Error::getMessage(): string
final public Error::getCode(): int
final public Error::getFile(): string
final public Error::getLine(): int
final public Error::getTrace(): array
private Error::__clone(): void
}

Sürüm Bilgisi

Sürüm: Açıklama
PHP 8.0.0 SimdJsonValueError extends ValueError now instead of Error.
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top