code: def render_as_text(self, limit=None):
          
          lines = traceback.format_exception(self.exc_type, self.exc_value,
                                             self.frames[0], limit=limit)
          return ''.join(lines).rstrip()
docs: Return a string with the traceback.