Simdjson

目次

The SimdJsonException class

はじめに

Exception thrown if simdjson_decode, simdjson_key_count, simdjson_key_exists, or simdjson_key_value. For possible values see the simdjson error codes constants.

クラス概要

SimdJsonException
class SimdJsonException extends RuntimeException {
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private Throwablenull $previous = null;
}

The SimdJsonValueError class

はじめに

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.

クラス概要

SimdJsonValueError
class SimdJsonValueError extends ValueError {
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private Throwablenull $previous = null;
/* 継承したメソッド */
final public string Error::getMessage()
final public Throwablenull Error::getPrevious()
final public int Error::getCode()
final public string Error::getFile()
final public int Error::getLine()
final public array Error::getTrace()
final public string Error::getTraceAsString()
public string Error::__toString()
private void Error::__clone()
}

変更履歴

バージョン 説明
PHP 8.0.0 SimdJsonValueError extends ValueError now instead of Error.