forked from julien-duponchelle/python-mysql-replication
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexceptions.py
More file actions
19 lines (15 loc) · 720 Bytes
/
exceptions.py
File metadata and controls
19 lines (15 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class TableMetadataUnavailableError(Exception):
def __init__(self, table: str) -> None:
Exception.__init__(self,"Unable to find metadata for table {0}".format(table))
class BinLogNotEnabled(Exception):
def __init__(self) -> None:
Exception.__init__(self, "MySQL binary logging is not enabled.")
class StatusVariableMismatch(Exception):
def __init__(self) -> None:
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"
]))