Files
patroni/patroni/exceptions.py
T
Ants AasmaandAlexander Kukushkin a70b46ef13 Add watchdog support on Linux (#343)
Ensures that system gets rebooted before TTL runs out.

Initial version. Open questions:

    Do we want to disable watchdog while we are not master?
2017-06-01 16:53:46 +02:00

30 lines
548 B
Python

class PatroniException(Exception):
"""Parent class for all kind of exceptions related to selected distributed configuration store"""
def __init__(self, value):
self.value = value
def __str__(self):
"""
>>> str(PatroniException('foo'))
"'foo'"
"""
return repr(self.value)
class PostgresException(PatroniException):
pass
class DCSError(PatroniException):
pass
class PostgresConnectionException(PostgresException):
pass
class WatchdogError(PatroniException):
pass