def discard(self):  # pylint: disable=no-self-use
        """
        Clears uncommited changes.

        :raise pyPluribus.exceptions.ConfigurationDiscardError: If the configuration applied cannot be discarded.
        """
        try:
            self.rollback(0)
        except pyPluribus.exceptions.RollbackError as rbackerr:
            raise pyPluribus.exceptions.ConfigurationDiscardError("Cannot discard configuration: {err}.\
                ".format(err=rbackerr))
def discard ( self ) : try : self . rollback ( 0 ) except pyPluribus . exceptions . RollbackError as rbackerr : raise pyPluribus . exceptions . ConfigurationDiscardError ( "Cannot discard configuration: {err}.\
                " . format ( err = rbackerr ) )
Clears uncommited changes.

        :raise pyPluribus.exceptions.ConfigurationDiscardError: If the configuration applied cannot be discarded.