My plugin have to load some parts of its interface using methods AddSubDialog, AttachSubDialog. But if there is some errors or typos on gui subdialog class methods like InitValues():
TypeError: InitValues() takes no arguments (1 given)
is not "raiseble" with try/raise. Error just appears in Script Console.
How to catch all gui drawing errors?