Files
patroni/helpers/errors.py
T
Alexander Kukushkin 8dd99170bf Refactor exceptions handling in etcd.py and ha.py
update_leader can throw EtcdError exception
unused HealthiestMemberError exception is removed
2015-05-24 15:40:36 +02:00

12 lines
191 B
Python

class EtcdError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class CurrentLeaderError(EtcdError):
pass