PHP Conference Japan 2024

MongoDB\Driver\Exception\UnexpectedValueException 類別

(mongodb >= 1.0.0)

簡介

當驅動程式遇到非預期值時拋出此例外 (例如,在 BSON 序列化或反序列化期間)。

類別概要

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

使用者貢獻的註釋

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