The MongoDB\Driver\Exception\ExecutionTimeoutException class

(mongodb >= 1.0.0)

Introduction

Thrown when a query or command fails to complete within a specified time limit (e.g. » maxTimeMS).

Class synopsis

finalclassMongoDB\Driver\Exception\ExecutionTimeoutExceptionextendsMongoDB\Driver\Exception\ServerExceptionimplementsMongoDB\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
}

Changelog

VersionDescription
PECL mongodb 1.5.0

This class now extends MongoDB\Driver\Exception\ServerException instead of MongoDB\Driver\Exception\RuntimeException.

To Top