amorilia/blender_nif_scripts — comment on commit 7d13ea20da3d28741dfc1fbd1d66a09b7641baf0
File: docs/development/design.rst line 37
By neomonkeus:

I found the method I was thinging about.
bpy.ops.ui.reports_to_textblock()
It creates a textblock with any exceptions raised but I don't know how useful it might be