exceptions
Custom Exception-s used in pytermgui.
AnsiSyntaxError
Bases: ParserSyntaxError
Raised when parsed ANSI text contains an error.
Source code in pytermgui/exceptions.py
90 91 92 93 |
|
ColorSyntaxError
Bases: Exception
Raised when a color string could not be parsed into a pytermgui.colors.Color
Source code in pytermgui/exceptions.py
29 30 |
|
LineLengthError
Bases: Exception
Raised when a widget line is not the expected length.
Source code in pytermgui/exceptions.py
25 26 |
|
MarkupSyntaxError
Bases: ParserSyntaxError
Raised when parsed markup text contains an error.
Source code in pytermgui/exceptions.py
84 85 86 87 |
|
ParserSyntaxError
dataclass
Bases: Exception
Parent exception for unparsable strings.
This exception takes some basic parameters, and formats a message depending on the _delimiters value. This has to be supplied by each child, while the rest of the arguments are to be given at construction.
Source code in pytermgui/exceptions.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
__str__()
Show message.
Source code in pytermgui/exceptions.py
78 79 80 81 |
|
escape_message()
Return message with markup tags escaped.
Source code in pytermgui/exceptions.py
72 73 74 75 76 |
|
message()
property
Create message from tag, context and cause.
Source code in pytermgui/exceptions.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
TimeoutException
Bases: Exception
Raised when an action has timed out.
Source code in pytermgui/exceptions.py
17 18 |
|
WidthExceededError
Bases: Exception
Raised when an element's width is larger than the screen.
Source code in pytermgui/exceptions.py
21 22 |
|