├── MemoryError <spanclass="hljs-comment"># Out of memory. Could be too late to start deleting vars.</span>
├── NameError <spanclass="hljs-comment"># Raised when nonexistent name (variable/func/class) is used.</span>
│ └── UnboundLocalError <spanclass="hljs-comment"># Raised when local name is used before it's being defined.</span>
├── OSError <spanclass="hljs-comment"># Errors such as FileExistsError/PermissionError (see Open).</span>
├── OSError <spanclass="hljs-comment"># Errors such as FileExistsError/PermissionError (see #Open).</span>
│ └── ConnectionError <spanclass="hljs-comment"># Errors such as BrokenPipeError/ConnectionAbortedError.</span>
├── RuntimeError <spanclass="hljs-comment"># Raised by errors that don't fall into other categories.</span>
│ ├── NotImplementedErr <spanclass="hljs-comment"># Can be raised by abstract methods or by unfinished code.</span>
│ └── RecursionError <spanclass="hljs-comment"># Raised when the maximum recursion depth is exceeded.</span>
├── StopIteration <spanclass="hljs-comment"># Raised by next() when run on an empty iterator.</span>
├── TypeError <spanclass="hljs-comment"># Raised when an argument is of the wrong type.</span>
└── ValueError <spanclass="hljs-comment"># When argument has the right type but inappropriate value.</span>
└── UnicodeError <spanclass="hljs-comment"># Raised when encoding/decoding strings to/from bytes fails.</span>
</code></pre></div>
<div><h4id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><codeclass="text language-text">┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓