<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reprompt_error(self, message=None):
 """ Intended to be used in case of erroneous input data """

        try:
            session_id = session.sessionId
            self.session_machines.rollback_fsm(session_id)
            current_state = self.session_machines.current_state(session_id)
            if message is None:
                err_msg = choice(self._scenario_steps[current_state]['reprompt'])
            else:
                err_msg = message
            return question(err_msg)
        except UninitializedStateMachine as e:
            logger.error(e)
            return statement(INTERNAL_ERROR_MSG)