<!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="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>errors – Exceptions raised by the gridfs package — PyMongo 3.7.2 documentation</title> <link rel="stylesheet" href="../../_static/pydoctheme.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></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/language_data.js"></script> <script type="text/javascript" src="../../_static/sidebar.js"></script> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> <link rel="next" title="grid_file – Tools for representing files stored in GridFS" href="grid_file.html" /> <link rel="prev" title="gridfs – Tools for working with GridFS" href="index.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <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="grid_file.html" title="grid_file – Tools for representing files stored in GridFS" accesskey="N">next</a> |</li> <li class="right" > <a href="index.html" title="gridfs – Tools for working with GridFS" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.7.2 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> »</li> <li class="nav-item nav-item-2"><a href="index.html" accesskey="U"><code class="docutils literal notranslate"><span class="pre">gridfs</span></code> – Tools for working with GridFS</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="module-gridfs.errors"> <span id="errors-exceptions-raised-by-the-gridfs-package"></span><h1><code class="xref py py-mod docutils literal notranslate"><span class="pre">errors</span></code> – Exceptions raised by the <a class="reference internal" href="index.html#module-gridfs" title="gridfs: Tools for working with GridFS"><code class="xref py py-mod docutils literal notranslate"><span class="pre">gridfs</span></code></a> package<a class="headerlink" href="#module-gridfs.errors" title="Permalink to this headline">¶</a></h1> <p>Exceptions raised by the <a class="reference internal" href="index.html#module-gridfs" title="gridfs: Tools for working with GridFS"><code class="xref py py-mod docutils literal notranslate"><span class="pre">gridfs</span></code></a> package</p> <dl class="exception"> <dt id="gridfs.errors.CorruptGridFile"> <em class="property">exception </em><code class="descclassname">gridfs.errors.</code><code class="descname">CorruptGridFile</code><span class="sig-paren">(</span><em>message=''</em>, <em>error_labels=None</em><span class="sig-paren">)</span><a class="headerlink" href="#gridfs.errors.CorruptGridFile" title="Permalink to this definition">¶</a></dt> <dd><p>Raised when a file in <a class="reference internal" href="index.html#gridfs.GridFS" title="gridfs.GridFS"><code class="xref py py-class docutils literal notranslate"><span class="pre">GridFS</span></code></a> is malformed.</p> </dd></dl> <dl class="exception"> <dt id="gridfs.errors.FileExists"> <em class="property">exception </em><code class="descclassname">gridfs.errors.</code><code class="descname">FileExists</code><span class="sig-paren">(</span><em>message=''</em>, <em>error_labels=None</em><span class="sig-paren">)</span><a class="headerlink" href="#gridfs.errors.FileExists" title="Permalink to this definition">¶</a></dt> <dd><p>Raised when trying to create a file that already exists.</p> </dd></dl> <dl class="exception"> <dt id="gridfs.errors.GridFSError"> <em class="property">exception </em><code class="descclassname">gridfs.errors.</code><code class="descname">GridFSError</code><span class="sig-paren">(</span><em>message=''</em>, <em>error_labels=None</em><span class="sig-paren">)</span><a class="headerlink" href="#gridfs.errors.GridFSError" title="Permalink to this definition">¶</a></dt> <dd><p>Base class for all GridFS exceptions.</p> </dd></dl> <dl class="exception"> <dt id="gridfs.errors.NoFile"> <em class="property">exception </em><code class="descclassname">gridfs.errors.</code><code class="descname">NoFile</code><span class="sig-paren">(</span><em>message=''</em>, <em>error_labels=None</em><span class="sig-paren">)</span><a class="headerlink" href="#gridfs.errors.NoFile" title="Permalink to this definition">¶</a></dt> <dd><p>Raised when trying to read from a non-existent file.</p> </dd></dl> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="index.html" title="previous chapter"><code class="docutils literal notranslate"><span class="pre">gridfs</span></code> – Tools for working with GridFS</a></p> <h4>Next topic</h4> <p class="topless"><a href="grid_file.html" title="next chapter"><code class="docutils literal notranslate"><span class="pre">grid_file</span></code> – Tools for representing files stored in GridFS</a></p> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../../_sources/api/gridfs/errors.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3>Quick search</h3> <div class="searchformwrapper"> <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> </div> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <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="grid_file.html" title="grid_file – Tools for representing files stored in GridFS" >next</a> |</li> <li class="right" > <a href="index.html" title="gridfs – Tools for working with GridFS" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../../index.html">PyMongo 3.7.2 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="../index.html" >API Documentation</a> »</li> <li class="nav-item nav-item-2"><a href="index.html" ><code class="docutils literal notranslate"><span class="pre">gridfs</span></code> – Tools for working with GridFS</a> »</li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright MongoDB, Inc. 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc. </div> </body> </html>