Files
patroni/helpers/__init__.py
T

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)