<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The MongoCursorTimeoutException class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mongocursorexception.gethost.html">MongoCursorException::getHost</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.mongoconnectionexception.html">MongoConnectionException</a></div> <div class="up"><a href="mongo.exceptions.html">Exceptions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.mongocursortimeoutexception" class="reference"> <h1 class="title">The MongoCursorTimeoutException class</h1> <div class="partintro"><p class="verinfo">(PECL mongo >= 1.0.0)</p> <div class="section" id="mongocursortimeoutexception.intro"> <h2 class="title">Introduction</h2> <p class="para"> Caused by a query timing out. You can set the length of time to wait before this exception is thrown by calling <span class="function"><a href="mongocursor.timeout.html" class="function">MongoCursor::timeout()</a></span> on the cursor or setting <em>MongoCursor::$timeout</em>. The static variable is useful for queries such as database commands and <span class="function"><a href="mongocollection.findone.html" class="function">MongoCollection::findOne()</a></span>, both of which implicitly use cursors. </p> </div> <div class="section" id="mongocursortimeoutexception.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">MongoCursorTimeoutException</strong> </span> <span class="ooclass"> <span class="modifier">extends</span> <a href="class.mongocursorexception.html" class="classname">MongoCursorException</a> </span> {</div> }</div> </div> </div> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mongocursorexception.gethost.html">MongoCursorException::getHost</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.mongoconnectionexception.html">MongoConnectionException</a></div> <div class="up"><a href="mongo.exceptions.html">Exceptions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>