def getrepr(<EOL>self,<EOL>showlocals=False,<EOL>style="<STR_LIT>",<EOL>abspath=False,<EOL>tbfilter=True,<EOL>funcargs=False,<EOL>truncate_locals=True,<EOL>chain=True,<EOL>):
if style == "<STR_LIT>":<EOL><INDENT>return ReprExceptionInfo(<EOL>ReprTracebackNative(<EOL>traceback.format_exception(<EOL>self.type, self.value, self.traceback[<NUM_LIT:0>]._rawentry<EOL>)<EOL>),<EOL>self._getreprcrash(),<EOL>)<EOL><DEDENT>fmt = FormattedExcinfo(<EOL>showlocals=showlocals,<EOL>style=style,<EOL>abspath=abspath,<EOL>tbfilter=tbfilter,<EOL>funcargs=funcargs,<EOL>truncate_locals=truncate_locals,<EOL>chain=chain,<EOL>)<EOL>return fmt.repr_excinfo(self)<EOL>
Return str()able representation of this exception info.

:param bool showlocals:
    Show locals per traceback entry.
    Ignored if ``style=="native"``.

:param str style: long|short|no|native traceback style

:param bool abspath:
    If paths should be changed to absolute or left unchanged.

:param bool tbfilter:
    Hide entries that contain a local variable ``__tracebackhide__==True``.
    Ignored if ``style=="native"``.

:param bool funcargs:
    Show fixtures ("funcargs" for legacy purposes) per traceback entry.

:param bool truncate_locals:
    With ``showlocals==True``, make sure locals can be safely represented as strings.

:param bool chain: if chained exceptions in Python 3 should be shown.

.. versionchanged:: 3.9

    Added the ``chain`` parameter.