mysqli_sql_exception 类

(PHP 5, PHP 7, PHP 8)

简介

mysqli 异常处理类。

类摘要

finalclassmysqli_sql_exceptionextendsRuntimeException {
protectedstring$sqlstate = "00000";
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}

属性

sqlstate

出现错误的 sql 状态。

目录

To Top