'Return a color formatted string with the traceback info.
Parameters
etype : exception type
Type of the exception raised.
value : object
Data stored in the exception
elist : list
List of frames, see class docstring for details.
tb_offset : int, optional
Number of frames in the traceback to skip.  If not given, the
instance value is used (set in constructor).
context : int, optional
Number of lines of context information to print.
Returns
String with formatted exception.'

def structured_traceback(self, etype, value, elist, tb_offset=None, context=5):

    tb_offset = (self.tb_offset if (tb_offset is None) else tb_offset)
    Colors = self.Colors
    out_list = []
    if elist:
        if (tb_offset and (len(elist) > tb_offset)):
            elist = elist[tb_offset:]
        out_list.append((('Traceback    %s(most    recent    call    last)%s:' % (Colors.normalEm, Colors.Normal)) + '\n'))
        out_list.extend(self._format_list(elist))
    lines = ''.join(self._format_exception_only(etype, value))
    out_list.append(lines)
    return out_list
