Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\Exception\ServerExceptionMongoDB\Driver\Exception\UnexpectedValueException>
^MongoDB\Driver\ExceptionLast updated: Mon, 26 Oct 2026

The MongoDB\Driver\Exception\SSLConnectionException class

(mongodb >= 1.0.0)

Warning

This exception class is DEPRECATED as of extension version 1.5.0 and was removed in 2.0. This exception was never thrown by the extension. Applications should use MongoDB\Driver\Exception\ConnectionException instead.

Introduction

Thrown when the driver fails to establish an SSL connection with the server.

Class synopsis

final class MongoDB\Driver\Exception\SSLConnectionException extends MongoDB\Driver\Exception\ConnectionException implements MongoDB\Driver\Exception\Exception {
/* Inherited properties */
protected ?array $errorLabels;
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Inherited methods */
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}

<MongoDB\Driver\Exception\ServerExceptionMongoDB\Driver\Exception\UnexpectedValueException>
^MongoDB\Driver\ExceptionLast updated: Mon, 26 Oct 2026