mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-09-01 09:09:21 +00:00
30 lines
547 B
Python
30 lines
547 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 PatroniCtlException(Exception):
|
|
pass
|
|
|
|
|
|
class PostgresException(PatroniException):
|
|
pass
|
|
|
|
|
|
class DCSError(PatroniException):
|
|
pass
|
|
|
|
|
|
class PostgresConnectionException(PostgresException):
|
|
pass
|