PHP Conference Japan 2024

mysqli_sql_exception 類別

(PHP 5, PHP 7, PHP 8)

簡介

MySQLi 例外處理類別。

類別概要

final class mysqli_sql_exception extends RuntimeException {
/* 屬性 */
protected 字串 $sqlstate = "00000";
/* 繼承的屬性 */
保護 字串 $message = "";
私有 字串 $string = "";
保護 整數 $code;
保護 字串 $file = "";
保護 整數 $line;
私有 陣列 $trace = [];
私有 ?Throwable $previous = null;
/* 方法 */
公開 getSqlState(): 字串
/* 繼承的方法 */
公開 Exception::__construct(字串 $message = "", 整數 $code = 0, ?Throwable $previous = null)
最終 公開 Exception::getMessage(): 字串
最終 公開 Exception::getCode(): 整數
最終 公開 Exception::getFile(): 字串
最終 公開 Exception::getLine(): 整數
最終 公開 Exception::getTrace(): 陣列
}

屬性

sqlstate

錯誤的 SQL 狀態。

目錄

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top