/usr/lib/python3/dist-packages/patroni/exceptions.py is in patroni 1.4.2-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 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
|