|
|
@ -1294,7 +1294,7 @@ LogicOp = Enum(<span class="hljs-string">'LogicOp'</span>, {<span class="hljs-st |
|
|
|
|
|
|
|
<ul> |
|
|
|
<li><strong>Also catches subclasses of the exception.</strong></li> |
|
|
|
<li><strong>Use <code class="python hljs"><span class="hljs-string">'traceback.print_exc()'</span></code> to print the the error message.</strong></li> |
|
|
|
<li><strong>Use <code class="python hljs"><span class="hljs-string">'traceback.print_exc()'</span></code> to print the error message.</strong></li> |
|
|
|
</ul> |
|
|
|
<div><h3 id="raisingexceptions">Raising Exceptions</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">raise</span> <exception> |
|
|
|
<span class="hljs-keyword">raise</span> <exception>() |
|
|
|