@ -1238,8 +1238,8 @@ error_msg = <span class="hljs-string">''</span>.join(traceback.format_exception(
├── ArithmeticError < span class = "hljs-comment" > # Base class for arithmetic errors.< / span >
├── ArithmeticError < span class = "hljs-comment" > # Base class for arithmetic errors.< / span >
│ └── ZeroDivisionError < span class = "hljs-comment" > # Raised when dividing by zero.< / span >
│ └── ZeroDivisionError < span class = "hljs-comment" > # Raised when dividing by zero.< / span >
├── AssertionError < span class = "hljs-comment" > # Raised by `assert < exp> ` if expression returns false value.< / span >
├── AssertionError < span class = "hljs-comment" > # Raised by `assert < exp> ` if expression returns false value.< / span >
├── AttributeError < span class = "hljs-comment" > # Raised when an attribute is missing .< / span >
├── AttributeError < span class = "hljs-comment" > # Raised when object doesn't have requested attribute/method .< / span >
├── EOFError < span class = "hljs-comment" > # Raised by input() when it hits end-of-file condition.< / span >
├── EOFError < span class = "hljs-comment" > # Raised by input() when it hits an end-of-file condition.< / span >
├── LookupError < span class = "hljs-comment" > # Base class for errors when a collection can't find an item.< / span >
├── LookupError < span class = "hljs-comment" > # Base class for errors when a collection can't find an item.< / span >
│ ├── IndexError < span class = "hljs-comment" > # Raised when a sequence index is out of range.< / 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 >
│ └── KeyError < span class = "hljs-comment" > # Raised when a dictionary key or set element is missing.< / span >
@ -1250,8 +1250,8 @@ error_msg = <span class="hljs-string">''</span>.join(traceback.format_exception(
├── RuntimeError < span class = "hljs-comment" > # Raised by errors that don't fall into other categories.< / span >
├── RuntimeError < span class = "hljs-comment" > # Raised by errors that don't fall into other categories.< / span >
│ └── RecursionError < span class = "hljs-comment" > # Raised when the maximum recursion depth is exceeded.< / span >
│ └── RecursionError < span class = "hljs-comment" > # Raised when the maximum recursion depth is exceeded.< / span >
├── StopIteration < span class = "hljs-comment" > # Raised by next() when run on an empty iterator.< / span >
├── StopIteration < span class = "hljs-comment" > # Raised by next() when run on an empty iterator.< / span >
├── TypeError < span class = "hljs-comment" > # Raised when an argument is of wrong type.< / span >
├── TypeError < span class = "hljs-comment" > # Raised when an argument is of the wrong type.< / span >
└── ValueError < span class = "hljs-comment" > # When an argument is of right type but inappropriate value.< / span >
└── ValueError < span class = "hljs-comment" > # When argument has the right type but inappropriate value.< / span >
└── UnicodeError < span class = "hljs-comment" > # Raised when encoding/decoding strings to/from bytes fails.< / span >
└── UnicodeError < span class = "hljs-comment" > # Raised when encoding/decoding strings to/from bytes fails.< / span >
< / code > < / pre > < / div >
< / code > < / pre > < / div >
@ -1265,8 +1265,8 @@ error_msg = <span class="hljs-string">''</span>.join(traceback.format_exception(
┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛
┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛
< / code > < / pre > < / div >
< / code > < / pre > < / div >
< div > < h4 id = "usefulbuiltinexceptions" > Useful built-in exceptions:< / h4 > < pre > < code class = "python language-python hljs" > < span class = "hljs-keyword" > raise< / span > TypeError(< span class = "hljs-string" > 'Argument is of wrong type!'< / span > )
< div > < h4 id = "usefulbuiltinexceptions" > Useful built-in exceptions:< / h4 > < pre > < code class = "python language-python hljs" > < span class = "hljs-keyword" > raise< / span > TypeError(< span class = "hljs-string" > 'Argument is of the wrong type!'< / span > )
< span class = "hljs-keyword" > raise< / span > ValueError(< span class = "hljs-string" > 'Argument is of right type but inappropriate value!'< / span > )
< span class = "hljs-keyword" > raise< / span > ValueError(< span class = "hljs-string" > 'Argument has the right type but an inappropriate value!'< / span > )
< span class = "hljs-keyword" > raise< / span > RuntimeError(< span class = "hljs-string" > 'None of above!'< / span > )
< span class = "hljs-keyword" > raise< / span > RuntimeError(< span class = "hljs-string" > 'None of above!'< / span > )
< / code > < / pre > < / div >
< / code > < / pre > < / div >
xxxxxxxxxx