forked from julien-duponchelle/python-mysql-replication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexceptions.py
More file actions
24 lines (20 loc) · 793 Bytes
/
Copy pathexceptions.py
File metadata and controls
24 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class TableMetadataUnavailableError(Exception):
def __init__(self, table):
Exception.__init__(self, f"Unable to find metadata for table {table}")
class BinLogNotEnabled(Exception):
def __init__(self):
Exception.__init__(self, "MySQL binary logging is not enabled.")
class StatusVariableMismatch(Exception):
def __init__(self):
Exception.__init__(
self,
" ".join(
(
"Unknown status variable in query event.",
"Possible parse failure in preceding fields",
"or outdated constants.STATUS_VAR_KEY",
"Refer to MySQL documentation/source code",
"or create an issue on GitHub",
)
),
)