+-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails.
</code></pre></div>
<div><h4id="usefulbuiltinexceptions">Useful built-in exceptions:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">raise</span> TypeError(<spanclass="hljs-string">'Argument is of wrong type!'</span>)
<spanclass="hljs-keyword">raise</span> ValueError(<spanclass="hljs-string">'Argument is of right type but inappropriate value!'</span>)
<spanclass="hljs-keyword">raise</span> RuntimeError(<spanclass="hljs-string">'None of above!'</span>)
</code></pre></div>
<div><h4id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><codeclass="text language-text">+-----------+------------+------------+------------+
<div><h4id="usefulbuiltinexceptions">Useful built-in exceptions:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">raise</span> TypeError(<spanclass="hljs-string">'Argument is of wrong type!'</span>)
<spanclass="hljs-keyword">raise</span> ValueError(<spanclass="hljs-string">'Argument is of right type but inappropriate value!'</span>)
<spanclass="hljs-keyword">raise</span> RuntimeError(<spanclass="hljs-string">'None of above!'</span>)