This file is indexed.

/usr/share/doc/python-pymongo-doc/html/api/pymongo/errors.html is in python-pymongo-doc 2.7.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>errors – Exceptions raised by the pymongo package &mdash; PyMongo 2.7.2 documentation</title>
    
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '2.7.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/sidebar.js"></script>
    <link rel="top" title="PyMongo 2.7.2 documentation" href="../../index.html" />
    <link rel="up" title="pymongo – Python driver for MongoDB" href="index.html" />
    <link rel="next" title="master_slave_connection – Master-slave connection to MongoDB" href="master_slave_connection.html" />
    <link rel="prev" title="bulk – The bulk write operations interface" href="bulk.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="master_slave_connection.html" title="master_slave_connection – Master-slave connection to MongoDB"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="bulk.html" title="bulk – The bulk write operations interface"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">PyMongo 2.7.2 documentation</a> &raquo;</li>
          <li><a href="../index.html" >API Documentation</a> &raquo;</li>
          <li><a href="index.html" accesskey="U"><tt class="docutils literal"><span class="pre">pymongo</span></tt> &#8211; Python driver for MongoDB</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-pymongo.errors">
<span id="errors-exceptions-raised-by-the-pymongo-package"></span><h1><tt class="xref py py-mod docutils literal"><span class="pre">errors</span></tt> &#8211; Exceptions raised by the <a class="reference internal" href="index.html#module-pymongo" title="pymongo: Python driver for MongoDB"><tt class="xref py py-mod docutils literal"><span class="pre">pymongo</span></tt></a> package<a class="headerlink" href="#module-pymongo.errors" title="Permalink to this headline"></a></h1>
<p>Exceptions raised by PyMongo.</p>
<dl class="exception">
<dt id="pymongo.errors.AutoReconnect">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">AutoReconnect</tt><big>(</big><em>message=''</em>, <em>errors=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.AutoReconnect" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a connection to the database is lost and an attempt to
auto-reconnect will be made.</p>
<p>In order to auto-reconnect you must handle this exception, recognizing that
the operation which caused it has not necessarily succeeded. Future
operations will attempt to open a new connection to the database (and
will continue to raise this exception until the first successful
connection is made).</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.BulkWriteError">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">BulkWriteError</tt><big>(</big><em>results</em><big>)</big><a class="headerlink" href="#pymongo.errors.BulkWriteError" title="Permalink to this definition"></a></dt>
<dd><p>Exception class for bulk write errors.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.7.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.CollectionInvalid">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">CollectionInvalid</tt><a class="headerlink" href="#pymongo.errors.CollectionInvalid" title="Permalink to this definition"></a></dt>
<dd><p>Raised when collection validation fails.</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.ConfigurationError">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">ConfigurationError</tt><a class="headerlink" href="#pymongo.errors.ConfigurationError" title="Permalink to this definition"></a></dt>
<dd><p>Raised when something is incorrectly configured.</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.ConnectionFailure">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">ConnectionFailure</tt><a class="headerlink" href="#pymongo.errors.ConnectionFailure" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a connection to the database cannot be made or is lost.</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.CursorNotFound">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">CursorNotFound</tt><big>(</big><em>error</em>, <em>code=None</em>, <em>details=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.CursorNotFound" title="Permalink to this definition"></a></dt>
<dd><p>Raised while iterating query results if the cursor is
invalidated on the server.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.7.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.DocumentTooLarge">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">DocumentTooLarge</tt><a class="headerlink" href="#pymongo.errors.DocumentTooLarge" title="Permalink to this definition"></a></dt>
<dd><p>Raised when an encoded document is too large for the connected server.</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.DuplicateKeyError">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">DuplicateKeyError</tt><big>(</big><em>error</em>, <em>code=None</em>, <em>details=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.DuplicateKeyError" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a safe insert or update fails due to a duplicate key error.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Requires server version <strong>&gt;= 1.3.0</strong></p>
</div>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.4.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.ExceededMaxWaiters">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">ExceededMaxWaiters</tt><a class="headerlink" href="#pymongo.errors.ExceededMaxWaiters" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a thread tries to get a connection from a pool and
<tt class="docutils literal"><span class="pre">max_pool_size</span> <span class="pre">*</span> <span class="pre">waitQueueMultiple</span></tt> threads are already waiting.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.6.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.ExecutionTimeout">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">ExecutionTimeout</tt><big>(</big><em>error</em>, <em>code=None</em>, <em>details=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.ExecutionTimeout" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a database operation times out, exceeding the $maxTimeMS
set in the query or command option.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Requires server version <strong>&gt;= 2.6.0</strong></p>
</div>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.7.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.InvalidName">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">InvalidName</tt><a class="headerlink" href="#pymongo.errors.InvalidName" title="Permalink to this definition"></a></dt>
<dd><p>Raised when an invalid name is used.</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.InvalidOperation">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">InvalidOperation</tt><a class="headerlink" href="#pymongo.errors.InvalidOperation" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a client attempts to perform an invalid operation.</p>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.InvalidURI">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">InvalidURI</tt><a class="headerlink" href="#pymongo.errors.InvalidURI" title="Permalink to this definition"></a></dt>
<dd><p>Raised when trying to parse an invalid mongodb URI.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.5.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.OperationFailure">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">OperationFailure</tt><big>(</big><em>error</em>, <em>code=None</em>, <em>details=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.OperationFailure" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a database operation fails.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.7: </span>The <a class="reference internal" href="#pymongo.errors.OperationFailure.details" title="pymongo.errors.OperationFailure.details"><tt class="xref py py-attr docutils literal"><span class="pre">details</span></tt></a> attribute.</p>
</div>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.8: </span>The <a class="reference internal" href="#pymongo.errors.OperationFailure.code" title="pymongo.errors.OperationFailure.code"><tt class="xref py py-attr docutils literal"><span class="pre">code</span></tt></a> attribute.</p>
</div>
<dl class="attribute">
<dt id="pymongo.errors.OperationFailure.code">
<tt class="descname">code</tt><a class="headerlink" href="#pymongo.errors.OperationFailure.code" title="Permalink to this definition"></a></dt>
<dd><p>The error code returned by the server, if any.</p>
</dd></dl>

<dl class="attribute">
<dt id="pymongo.errors.OperationFailure.details">
<tt class="descname">details</tt><a class="headerlink" href="#pymongo.errors.OperationFailure.details" title="Permalink to this definition"></a></dt>
<dd><p>The complete error document returned by the server.</p>
<p>Depending on the error that occurred, the error document
may include useful information beyond just the error
message. When connected to a mongos the error document
may contain one or more subdocuments if errors occurred
on multiple shards.</p>
</dd></dl>

</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.PyMongoError">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">PyMongoError</tt><a class="headerlink" href="#pymongo.errors.PyMongoError" title="Permalink to this definition"></a></dt>
<dd><p>Base class for all PyMongo exceptions.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.4.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.TimeoutError">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">TimeoutError</tt><big>(</big><em>error</em>, <em>code=None</em>, <em>details=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.TimeoutError" title="Permalink to this definition"></a></dt>
<dd><p>DEPRECATED - will be removed in PyMongo 3.0. See WTimeoutError instead.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 1.8.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.UnsupportedOption">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">UnsupportedOption</tt><a class="headerlink" href="#pymongo.errors.UnsupportedOption" title="Permalink to this definition"></a></dt>
<dd><p>Exception for unsupported options.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.0.</span></p>
</div>
</dd></dl>

<dl class="exception">
<dt id="pymongo.errors.WTimeoutError">
<em class="property">exception </em><tt class="descclassname">pymongo.errors.</tt><tt class="descname">WTimeoutError</tt><big>(</big><em>error</em>, <em>code=None</em>, <em>details=None</em><big>)</big><a class="headerlink" href="#pymongo.errors.WTimeoutError" title="Permalink to this definition"></a></dt>
<dd><p>Raised when a database operation times out (i.e. wtimeout expires)
before replication completes.</p>
<p>With newer versions of MongoDB the <cite>details</cite> attribute may include
write concern fields like &#8216;n&#8217;, &#8216;updatedExisting&#8217;, or &#8216;writtenTo&#8217;.</p>
<div class="versionadded">
<p><span class="versionmodified">New in version 2.7.</span></p>
</div>
</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
  <p class="topless"><a href="bulk.html"
                        title="previous chapter"><tt class="docutils literal"><span class="pre">bulk</span></tt> &#8211; The bulk write operations interface</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="master_slave_connection.html"
                        title="next chapter"><tt class="docutils literal"><span class="pre">master_slave_connection</span></tt> &#8211; Master-slave connection to MongoDB</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../../_sources/api/pymongo/errors.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="master_slave_connection.html" title="master_slave_connection – Master-slave connection to MongoDB"
             >next</a> |</li>
        <li class="right" >
          <a href="bulk.html" title="bulk – The bulk write operations interface"
             >previous</a> |</li>
        <li><a href="../../index.html">PyMongo 2.7.2 documentation</a> &raquo;</li>
          <li><a href="../index.html" >API Documentation</a> &raquo;</li>
          <li><a href="index.html" ><tt class="docutils literal"><span class="pre">pymongo</span></tt> &#8211; Python driver for MongoDB</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2008 - 2014, MongoDB, Inc..
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
    </div>
  </body>
</html>