def METHOD_NAME(self, e=None) -> List[dict]:
    if e is None:
        e = sys.exc_info()[1]
    result = []
    if self.chain:
        if e.__cause__ is not None:
            result = self.METHOD_NAME(e.__cause__)
            result[-1]["tail"] = traceback._cause_message.strip()
        elif e.__context__ is not None and not e.__suppress_context__:
            result = self.METHOD_NAME(e.__context__)
            result[-1]["tail"] = traceback._context_message.strip()
    result.append(self.format_traceback_part(e))
    return result