The SimdJsonValueError class

(PECL simdjson >= 3.0.0)

Introduction

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.

Class synopsis

classSimdJsonValueErrorextendsValueError {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
finalpublicError::getCode(): int
finalpublicError::getFile(): string
finalpublicError::getLine(): int
finalpublicError::getTrace(): array
}

Changelog

VersionDescription
PHP 8.0.0SimdJsonValueError extends ValueError now instead of Error.
To Top