Sei sulla pagina 1di 5

<!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>gui.is_exceptions &mdash; InaSAFE 0.4.1-alpha documentation</title> <link rel="stylesheet" href="../../_static/cloud.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Noticia+ Text|Droid+Sans+Mono" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../../', VERSION: '0.4.1-alpha', 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/jquery.cookie.js"></script > <script type="text/javascript" src="../../_static/toggle_sections.js"></scri pt> <link rel="top" title="InaSAFE 0.4.1-alpha documentation" href="../../index. html" /> <link rel="up" title="Module code" href="../index.html" /> </head> <body> <div class="relbar-top"> <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> &nbsp; &nbsp;</li> <li><a href="../../index.html">Home</a> &raquo;</li> <li><a href="../../contents.html">Contents</a> &raquo;</li> <li><a href="../index.html" accesskey="U">Module code</a> &raquo;</li> </ul> </div> </div>

<div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <h1>Source code for gui.is_exceptions</h1><div class="highlight"><pre> <span class="sd">&quot;&quot;&quot;</span> <span class="sd">InaSAFE Disaster risk assessment tool developed by AusAid -</sp an> <span class="sd">**Exception Classes.**</span> <span class="sd">Custom exception classes for the IS application.</span> <span class="sd">Contact : ole.moller.nielsen@gmail.com</span> <span class="sd">.. note:: This program is free software; you can redistribute i t and/or modify</span> <span class="sd"> it under the terms of the GNU General Public License as pu blished by</span> <span class="sd"> the Free Software Foundation; either version 2 of the Lice nse, or</span> <span class="sd"> (at your option) any later version.</span> <span class="sd">&quot;&quot;&quot;</span> <span class="n">__author__</span> <span class="o">=</span> <span class="s">&#39; tim@linfiniti.com&#39;</span> <span class="n">__version__</span> <span class="o">=</span> <span class="s">&#39 ;0.3.1&#39;</span> <span class="n">__date__</span> <span class="o">=</span> <span class="s">&#39;12 /01/2011&#39;</span> <span class="n">__copyright__</span> <span class="o">=</span> <span class="p">(< /span><span class="s">&#39;Copyright 2012, Australia Indonesia Facility for &#39 ;</span> <span class="s">&#39;Disaster Reduction&#39;</span><span class= "p">)</span> <div class="viewcode-block" id="QgisPathException"><a class="viewcode-back" href ="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.QgisPathException">[do cs]</a><span class="k">class</span> <span class="nc">QgisPathException</span><sp an class="p">(</span><span class="ne">Exception</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when qgispath.txt co uld not be read.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="TestNotImplementedException"><a class="viewcodeback" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.TestNotImple mentedException">[docs]</a><span class="k">class</span> <span class="nc">TestNot ImplementedException</span><span class="p">(</span><span class="ne">Exception</s pan><span class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when a test exists o nly as a stub.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="InsufficientParametersException"><a class="viewc ode-back" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.Insuffic ientParametersException">[docs]</a><span class="k">class</span> <span class="nc"

>InsufficientParametersException</span><span class="p">(</span><span class="ne"> Exception</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when insufficient pa rameters have been set.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="NoFunctionsFoundException"><a class="viewcode-ba ck" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.NoFunctionsFou ndException">[docs]</a><span class="k">class</span> <span class="nc">NoFunctions FoundException</span><span class="p">(</span><span class="ne">Exception</span><s pan class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when a no impact cal culation</span> <span class="sd"> functions can be found.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="KeywordNotFoundException"><a class="viewcode-bac k" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.KeywordNotFound Exception">[docs]</a><span class="k">class</span> <span class="nc">KeywordNotFou ndException</span><span class="p">(</span><span class="ne">Exception</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when a no keyword ca n be found.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="HashNotFoundException"><a class="viewcode-back" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.HashNotFoundExcept ion">[docs]</a><span class="k">class</span> <span class="nc">HashNotFoundExcepti on</span><span class="p">(</span><span class="ne">Exception</span><span class="p ">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when a no keyword ha sh can be found.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="StyleInfoNotFoundException"><a class="viewcode-b ack" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.StyleInfoNotF oundException">[docs]</a><span class="k">class</span> <span class="nc">StyleInfo NotFoundException</span><span class="p">(</span><span class="ne">Exception</span ><span class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when a no styleInfo can be found.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="InvalidParameterException"><a class="viewcode-ba ck" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.InvalidParamet erException">[docs]</a><span class="k">class</span> <span class="nc">InvalidPara meterException</span><span class="p">(</span><span class="ne">Exception</span><s pan class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception for when an invalid para meter is</span> <span class="sd"> passed to a function.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="TranslationLoadException"><a class="viewcode-bac

k" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.TranslationLoad Exception">[docs]</a><span class="k">class</span> <span class="nc">TranslationLo adException</span><span class="p">(</span><span class="ne">Exception</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;Custom exception handler for whe translat ion file fails</span> <span class="sd"> to load.&quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="InvalidKVPException"><a class="viewcode-back" hr ef="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.InvalidKVPException" >[docs]</a><span class="k">class</span> <span class="nc">InvalidKVPException</sp an><span class="p">(</span><span class="ne">Exception</span><span class="p">):</ span> <span class="sd">&quot;&quot;&quot;An exception raised when a key value pair is invalid -</span> <span class="sd"> for example if the key of value is None or an empty string. &quot;&quot;&quot;</span> <span class="k">pass</span> </div> <div class="viewcode-block" id="LegendLayerException"><a class="viewcode-back" h ref="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.LegendLayerExceptio n">[docs]</a><span class="k">class</span> <span class="nc">LegendLayerException< /span><span class="p">(</span><span class="ne">Exception</span><span class="p">) :</span> <span class="sd">&quot;&quot;&quot;An exception raised when trying to create a legend from</span> <span class="sd"> a QgsMapLayer that does not have suitable characteristics t o</span> <span class="sd"> allow a legend to be created from it.&quot;&quot;&quot;</sp an> <span class="k">pass</span> </div> <div class="viewcode-block" id="NoFeaturesInExtentException"><a class="viewcodeback" href="../../api-docs/gui/is_exceptions.html#gui.is_exceptions.NoFeaturesIn ExtentException">[docs]</a><span class="k">class</span> <span class="nc">NoFeatu resInExtentException</span><span class="p">(</span><span class="ne">Exception</s pan><span class="p">):</span> <span class="sd">&quot;&quot;&quot;An exception that gets thrown when no fea tures are within</span> <span class="sd"> the extent being clipped.&quot;&quot;&quot;</span> <span class="k">pass</span></div> </pre></div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <p class="logo"><a href="../../contents.html"> <img class="logo" src="../../_static/icon.png" alt="Logo"/> </a></p> <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="relbar-bottom"> <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> &nbsp; &nbsp;</li> <li><a href="../../index.html">Home</a> &raquo;</li> <li><a href="../../contents.html">Contents</a> &raquo;</li> <li><a href="../index.html" >Module code</a> &raquo;</li> </ul> </div> </div> <div class="footer"> &copy; Copyright 2012, BNPB/AIFDR/GFDRR. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2. </div> <!-- cloud_sptheme 1.3 --> </body> </html>

Potrebbero piacerti anche