<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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))