Skip to content

Commit b2e84e9

Browse files
committed
Exceptions
1 parent 7760e20 commit b2e84e9

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,8 +1447,7 @@ BaseException
14471447
+-- SystemExit # Raised by the sys.exit() function.
14481448
+-- KeyboardInterrupt # Raised when the user hits the interrupt key (ctrl-c).
14491449
+-- Exception # User-defined exceptions should be derived from this class.
1450-
+-- ArithmeticError # Base class for arithmetic errors.
1451-
| +-- ZeroDivisionError # Raised when dividing by zero.
1450+
+-- ArithmeticError # Base class for arithmetic errors such as ZeroDivisionError.
14521451
+-- AssertionError # Raised by `assert <exp>` if expression returns false value.
14531452
+-- AttributeError # Raised when object doesn't have requested attribute/method.
14541453
+-- EOFError # Raised by input() when it hits an end-of-file condition.
@@ -1458,13 +1457,14 @@ BaseException
14581457
+-- MemoryError # Out of memory. Could be too late to start deleting vars.
14591458
+-- NameError # Raised when nonexistent name (variable/func/class) is used.
14601459
| +-- UnboundLocalError # Raised when local name is used before it's being defined.
1461-
+-- OSError # Errors such as FileExistsError/PermissionError (see Open).
1460+
+-- OSError # Errors such as FileExistsError/PermissionError (see #Open).
1461+
| +-- ConnectionError # Errors such as BrokenPipeError/ConnectionAbortedError.
14621462
+-- RuntimeError # Raised by errors that don't fall into other categories.
1463+
| +-- NotImplementedErr # Can be raised by abstract methods or by unfinished code.
14631464
| +-- RecursionError # Raised when the maximum recursion depth is exceeded.
14641465
+-- StopIteration # Raised by next() when run on an empty iterator.
14651466
+-- TypeError # Raised when an argument is of the wrong type.
14661467
+-- ValueError # When argument has the right type but inappropriate value.
1467-
+-- UnicodeError # Raised when encoding/decoding strings to/from bytes fails.
14681468
```
14691469

14701470
#### Collections and their exceptions:

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<body>
5656
<header>
57-
<aside>May 27, 2023</aside>
57+
<aside>May 31, 2023</aside>
5858
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
5959
</header>
6060

@@ -1237,8 +1237,7 @@
12371237
├── SystemExit <span class="hljs-comment"># Raised by the sys.exit() function.</span>
12381238
├── KeyboardInterrupt <span class="hljs-comment"># Raised when the user hits the interrupt key (ctrl-c).</span>
12391239
└── Exception <span class="hljs-comment"># User-defined exceptions should be derived from this class.</span>
1240-
├── ArithmeticError <span class="hljs-comment"># Base class for arithmetic errors.</span>
1241-
│ └── ZeroDivisionError <span class="hljs-comment"># Raised when dividing by zero.</span>
1240+
├── ArithmeticError <span class="hljs-comment"># Base class for arithmetic errors such as ZeroDivisionError.</span>
12421241
├── AssertionError <span class="hljs-comment"># Raised by `assert &lt;exp&gt;` if expression returns false value.</span>
12431242
├── AttributeError <span class="hljs-comment"># Raised when object doesn't have requested attribute/method.</span>
12441243
├── EOFError <span class="hljs-comment"># Raised by input() when it hits an end-of-file condition.</span>
@@ -1248,13 +1247,14 @@
12481247
├── MemoryError <span class="hljs-comment"># Out of memory. Could be too late to start deleting vars.</span>
12491248
├── NameError <span class="hljs-comment"># Raised when nonexistent name (variable/func/class) is used.</span>
12501249
│ └── UnboundLocalError <span class="hljs-comment"># Raised when local name is used before it's being defined.</span>
1251-
├── OSError <span class="hljs-comment"># Errors such as FileExistsError/PermissionError (see Open).</span>
1250+
├── OSError <span class="hljs-comment"># Errors such as FileExistsError/PermissionError (see #Open).</span>
1251+
│ └── ConnectionError <span class="hljs-comment"># Errors such as BrokenPipeError/ConnectionAbortedError.</span>
12521252
├── RuntimeError <span class="hljs-comment"># Raised by errors that don't fall into other categories.</span>
1253+
│ ├── NotImplementedErr <span class="hljs-comment"># Can be raised by abstract methods or by unfinished code.</span>
12531254
│ └── RecursionError <span class="hljs-comment"># Raised when the maximum recursion depth is exceeded.</span>
12541255
├── StopIteration <span class="hljs-comment"># Raised by next() when run on an empty iterator.</span>
12551256
├── TypeError <span class="hljs-comment"># Raised when an argument is of the wrong type.</span>
12561257
└── ValueError <span class="hljs-comment"># When argument has the right type but inappropriate value.</span>
1257-
└── UnicodeError <span class="hljs-comment"># Raised when encoding/decoding strings to/from bytes fails.</span>
12581258
</code></pre></div>
12591259

12601260
<div><h4 id="collectionsandtheirexceptions">Collections and their exceptions:</h4><pre><code class="text language-text">┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓
@@ -2935,7 +2935,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29352935

29362936

29372937
<footer>
2938-
<aside>May 27, 2023</aside>
2938+
<aside>May 31, 2023</aside>
29392939
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29402940
</footer>
29412941

parse.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,7 @@ const DIAGRAM_7_B =
407407
" ├── SystemExit <span class='hljs-comment'># Raised by the sys.exit() function.</span>\n" +
408408
" ├── KeyboardInterrupt <span class='hljs-comment'># Raised when the user hits the interrupt key (ctrl-c).</span>\n" +
409409
" └── Exception <span class='hljs-comment'># User-defined exceptions should be derived from this class.</span>\n" +
410-
" ├── ArithmeticError <span class='hljs-comment'># Base class for arithmetic errors.</span>\n" +
411-
" │ └── ZeroDivisionError <span class='hljs-comment'># Raised when dividing by zero.</span>\n" +
410+
" ├── ArithmeticError <span class='hljs-comment'># Base class for arithmetic errors such as ZeroDivisionError.</span>\n" +
412411
" ├── AssertionError <span class='hljs-comment'># Raised by `assert &lt;exp&gt;` if expression returns false value.</span>\n" +
413412
" ├── AttributeError <span class='hljs-comment'># Raised when object doesn't have requested attribute/method.</span>\n" +
414413
" ├── EOFError <span class='hljs-comment'># Raised by input() when it hits an end-of-file condition.</span>\n" +
@@ -418,13 +417,14 @@ const DIAGRAM_7_B =
418417
" ├── MemoryError <span class='hljs-comment'># Out of memory. Could be too late to start deleting vars.</span>\n" +
419418
" ├── NameError <span class='hljs-comment'># Raised when nonexistent name (variable/func/class) is used.</span>\n" +
420419
" │ └── UnboundLocalError <span class='hljs-comment'># Raised when local name is used before it's being defined.</span>\n" +
421-
" ├── OSError <span class='hljs-comment'># Errors such as FileExistsError/PermissionError (see Open).</span>\n" +
420+
" ├── OSError <span class='hljs-comment'># Errors such as FileExistsError/PermissionError (see #Open).</span>\n" +
421+
" │ └── ConnectionError <span class='hljs-comment'># Errors such as BrokenPipeError/ConnectionAbortedError.</span>\n" +
422422
" ├── RuntimeError <span class='hljs-comment'># Raised by errors that don't fall into other categories.</span>\n" +
423+
" │ ├── NotImplementedErr <span class='hljs-comment'># Can be raised by abstract methods or by unfinished code.</span>\n" +
423424
" │ └── RecursionError <span class='hljs-comment'># Raised when the maximum recursion depth is exceeded.</span>\n" +
424425
" ├── StopIteration <span class='hljs-comment'># Raised by next() when run on an empty iterator.</span>\n" +
425426
" ├── TypeError <span class='hljs-comment'># Raised when an argument is of the wrong type.</span>\n" +
426-
" └── ValueError <span class='hljs-comment'># When argument has the right type but inappropriate value.</span>\n" +
427-
" └── UnicodeError <span class='hljs-comment'># Raised when encoding/decoding strings to/from bytes fails.</span>\n";
427+
" └── ValueError <span class='hljs-comment'># When argument has the right type but inappropriate value.</span>\n";
428428

429429
const DIAGRAM_8_A =
430430
'+-----------+------------+------------+------------+\n' +

0 commit comments

Comments
 (0)