The MongoDB\Driver\Exception\ConnectionTimeoutException class
(mongodb >= 1.0.0)
Introduction
Thrown when the driver fails to establish a database connection within a specified time limit (connectTimeoutMS) or server selection fails (serverSelectionTimeoutMS).
Class synopsis
final
class MongoDB\Driver\Exception\ConnectionTimeoutException
extends
MongoDB\Driver\Exception\ConnectionException
implements
MongoDB\Driver\Exception\Exception {
/* Inherited properties */
/* Inherited methods */
final public function MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string
}$errorLabel): bool来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
