exceptions.py
Provides utils for exceptions.
format_exception(exception)
Format exception with traceback as a string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exception
|
BaseException
|
Original exception. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Exception traceback. |
Source code in jetweb/utils/exceptions.py
10 11 12 13 14 15 16 17 | |