mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-28 12:47:43 +00:00
1.1 KiB
1.1 KiB
Errors
Tabel of contents
Error
class Error
Error class for handling errors.
Attributes:
| Name | Type | Description |
|---|---|---|
code |
int |
Error code |
description |
str |
Error description |
descriptions |
dict |
A dictionary of error codes and descriptions |
conn_errors |
tuple[int] |
A tuple of connection errors |
is_connection_error
def is_connection_error(self) -> bool
Check if an error is a connection error.
Returns:
| Type | Description |
|---|---|
bool |
True if error is a connection error, False otherwise |