code: def set_error_prompt(self, error=None):
          
          if error is None:
              self.manual_error_re = error
          else:
              self.manual_error_re = to_regexs(error)
docs: Defines a pattern that is used to monitor the response of the
          connected host. If the pattern matches (any time the expect() or
          expect_prompt() methods are used), an error is raised.
  
          :type  error: RegEx
          :param error: The pattern that, when matched, causes an error.