略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SimdJsonValueError

2025-02-27

The SimdJsonValueError class

(PECL simdjson >= 3.0.0)

简介

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 SimdJsonValueError extends ValueError {
/* 继承的属性 */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* 继承的方法 */
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
}

更新日志

版本 说明
PHP 8.0.0 SimdJsonValueError extends ValueError now instead of Error.
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/class.simdjsonvalueerror.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3