Exceptions
PHP Manual

The MongoExecutionTimeoutException class

(PECL mongo >= 1.5.0)

Introduction

Throw when a operation times out server side (e.g. in MongoDB).

To configure the operation timeout threshold, use MongoCursor::maxTimeMS()

Class synopsis

MongoExecutionTimeoutException extends MongoException {
/* Inherited properties */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
}

Exceptions
PHP Manual