PHP Conference Japan 2024

MongoDB\Driver\Exception\ServerException 類別

(mongodb >= 1.5.0)

簡介

伺服器拋出異常的基底類別。此異常及其子類別的程式碼將對應於伺服器原始錯誤程式碼。

類別概要

class MongoDB\Driver\Exception\ServerException extends MongoDB\Driver\Exception\RuntimeException implements MongoDB\Driver\Exception\Exception {
/* 繼承的屬性 */
protected ?array $errorLabels;
保護 字串 $message = "";
私有 字串 $string = "";
保護 整數 $code;
保護 字串 $file = "";
保護 整數 $line;
私有 陣列 $trace = [];
私有 ?Throwable $previous = null;
/* 繼承的方法 */
最終 公開 Exception::getMessage(): 字串
最終 公開 Exception::getCode(): 整數
最終 公開 Exception::getFile(): 字串
最終 公開 Exception::getLine(): 整數
最終 公開 Exception::getTrace(): 陣列
}
新增筆記

使用者貢獻的筆記

此頁面沒有使用者貢獻的筆記。
To Top