Move some basic methods implementation into parent exception class

This commit is contained in:
Alexander Kukushkin
2015-09-08 12:41:48 +02:00
parent 496f91fea0
commit fa22d91e05
+4 -4
View File
@@ -1,8 +1,4 @@
class PatroniException(Exception):
pass
class DCSError(PatroniException):
"""Parent class for all kind of exceptions related to selected distributed configuration store"""
@@ -15,3 +11,7 @@ class DCSError(PatroniException):
"'foo'"
"""
return repr(self.value)
class DCSError(PatroniException):
pass