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

エラーの SQLSTATE。

目次

To Top