The MongoDB\Driver\Exception\AuthenticationException class

(mongodb >= 1.0.0)

Introduction

Thrown when the driver fails to authenticate with the server.

Class synopsis

classMongoDB\Driver\Exception\AuthenticationExceptionextendsMongoDB\Driver\Exception\ConnectionExceptionimplementsMongoDB\Driver\Exception\Exception {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}
To Top