mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-31 08:39:34 +00:00
17 lines
370 B
Python
17 lines
370 B
Python
class PatroniException(Exception):
|
|
pass
|
|
|
|
|
|
class DCSError(PatroniException):
|
|
"""Parent class for all kind of exceptions related to selected distributed configuration store"""
|
|
|
|
def __init__(self, value):
|
|
self.value = value
|
|
|
|
def __str__(self):
|
|
"""
|
|
>>> str(DCSError('foo'))
|
|
"'foo'"
|
|
"""
|
|
return repr(self.value)
|