Browse Source

Exceptions

pull/135/head
Jure Šorn 2 years ago
parent
commit
ac1eea616b
3 changed files with 6 additions and 0 deletions
  1. 2
      README.md
  2. 2
      index.html
  3. 2
      parse.js

2
README.md

@ -1440,11 +1440,13 @@ BaseException
+-- Exception # User-defined exceptions should be derived from this class.
+-- ArithmeticError # Base class for arithmetic errors.
| +-- ZeroDivisionError # Raised when dividing by zero.
+-- AssertionError # Raised by `assert <exp>` if expression returns false value.
+-- AttributeError # Raised when an attribute is missing.
+-- EOFError # Raised by input() when it hits end-of-file condition.
+-- LookupError # Raised when a look-up on a collection fails.
| +-- IndexError # Raised when a sequence index is out of range.
| +-- KeyError # Raised when a dictionary key or set element is missing.
+-- MemoryError # Out of memory. Could be too late to start deleting vars.
+-- NameError # Raised when an object is missing.
+-- OSError # Errors such as “file not found” or “disk full” (see Open).
| +-- FileNotFoundError # When a file or directory is requested but doesn't exist.

2
index.html

@ -1236,11 +1236,13 @@ error_msg = <span class="hljs-string">''</span>.join(traceback.format_exception(
└── Exception <span class="hljs-comment"># User-defined exceptions should be derived from this class.</span>
├── ArithmeticError <span class="hljs-comment"># Base class for arithmetic errors.</span>
│ └── ZeroDivisionError <span class="hljs-comment"># Raised when dividing by zero.</span>
├── AssertionError <span class="hljs-comment"># Raised by `assert &lt;exp&gt;` if expression returns false value.</span>
├── AttributeError <span class="hljs-comment"># Raised when an attribute is missing.</span>
├── EOFError <span class="hljs-comment"># Raised by input() when it hits end-of-file condition.</span>
├── LookupError <span class="hljs-comment"># Raised when a look-up on a collection fails.</span>
│ ├── IndexError <span class="hljs-comment"># Raised when a sequence index is out of range.</span>
│ └── KeyError <span class="hljs-comment"># Raised when a dictionary key or set element is missing.</span>
├── MemoryError <span class="hljs-comment"># Out of memory. Could be too late to start deleting vars.</span>
├── NameError <span class="hljs-comment"># Raised when an object is missing.</span>
├── OSError <span class="hljs-comment"># Errors such as “file not found” or “disk full” (see Open).</span>
│ └── FileNotFoundError <span class="hljs-comment"># When a file or directory is requested but doesn't exist.</span>

2
parse.js

@ -218,11 +218,13 @@ const DIAGRAM_7_B =
" └── Exception <span class='hljs-comment'># User-defined exceptions should be derived from this class.</span>\n" +
" ├── ArithmeticError <span class='hljs-comment'># Base class for arithmetic errors.</span>\n" +
" │ └── ZeroDivisionError <span class='hljs-comment'># Raised when dividing by zero.</span>\n" +
" ├── AssertionError <span class='hljs-comment'># Raised by `assert &lt;exp&gt;` if expression returns false value.</span>\n" +
" ├── AttributeError <span class='hljs-comment'># Raised when an attribute is missing.</span>\n" +
" ├── EOFError <span class='hljs-comment'># Raised by input() when it hits end-of-file condition.</span>\n" +
" ├── LookupError <span class='hljs-comment'># Raised when a look-up on a collection fails.</span>\n" +
" │ ├── IndexError <span class='hljs-comment'># Raised when a sequence index is out of range.</span>\n" +
" │ └── KeyError <span class='hljs-comment'># Raised when a dictionary key or set element is missing.</span>\n" +
" ├── MemoryError <span class='hljs-comment'># Out of memory. Could be too late to start deleting vars.</span>\n" +
" ├── NameError <span class='hljs-comment'># Raised when an object is missing.</span>\n" +
" ├── OSError <span class='hljs-comment'># Errors such as “file not found” or “disk full” (see Open).</span>\n" +
" │ └── FileNotFoundError <span class='hljs-comment'># When a file or directory is requested but doesn't exist.</span>\n" +

Loading…
Cancel
Save