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)

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(DCSError('foo'))
        "'foo'"
        """
        return repr(self.value)


class DCSError(PatroniException):
    pass

Move some basic methods implementation into parent exception class
Move some basic methods implementation into parent exception class

  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)
  
+ 
+ class DCSError(PatroniException):
+     pass
+ 
Move some basic methods implementation into parent exception class
## Code Before:
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)

## Instruction:
Move some basic methods implementation into parent exception class
## Code After:
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(DCSError('foo'))
        "'foo'"
        """
        return repr(self.value)


class DCSError(PatroniException):
    pass
