@classmethod<EOL><INDENT>def from_current(cls, exprinfo=None):<DEDENT>
tup = sys.exc_info()<EOL>assert tup[<NUM_LIT:0>] is not None, "<STR_LIT>"<EOL>_striptext = "<STR_LIT>"<EOL>if exprinfo is None and isinstance(tup[<NUM_LIT:1>], AssertionError):<EOL><INDENT>exprinfo = getattr(tup[<NUM_LIT:1>], "<STR_LIT>", None)<EOL>if exprinfo is None:<EOL><INDENT>exprinfo = saferepr(tup[<NUM_LIT:1>])<EOL><DEDENT>if exprinfo and exprinfo.startswith(cls._assert_start_repr):<EOL><INDENT>_striptext = "<STR_LIT>"<EOL><DEDENT><DEDENT>return cls(tup, _striptext)<EOL>
returns an ExceptionInfo matching the current traceback

        .. warning::

            Experimental API


        :param exprinfo: a text string helping to determine if we should
                         strip ``AssertionError`` from the output, defaults
                         to the exception message/``__str__()``