2024 年 PHP 日本研討會

MongoDB\Driver\Exception\ConnectionException 類別

(mongodb >= 1.0.0)

簡介

當驅動程式無法建立資料庫連線時拋出的例外的基底類別。

類別概要

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

使用者貢獻的註釋

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