<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def exit_on_exception(self, raised_exception, message='', exit_code=99):
 """Log generic message when getting an unrecoverable error :param raised_exception: raised Exception :type raised_exception: Exception :param message: message for the exit reason :type message: str :param exit_code: exit with the provided value as exit code :type exit_code: int :return: None """

        self.exit_on_error(message=message, exit_code=None)

        logger.critical("-----\nException: %s\nBack trace of the error:\n%s",
                        str(raised_exception), traceback.format_exc())

        exit(exit_code)