Ini seperti print_exc(limit) tetapi mengembalikan string alih-alih mencetak ke file.
traceback.format_exc(limit=None, chain=True)