AnsweredAssumed Answered

How to Raise Statements/Handle Errors and Exceptions in a Python Addin?

Question asked by BrokenLegMike on Feb 13, 2013
Latest reply on May 20, 2013 by wunderkind
I'm working with Python Addins and I created a button. The button doesn't work. I'm used to writing a script in IDLE or PythonWin and I've always throw in some error handling codes from:

http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000000q000000

This usually prints out the errors in the editor or as a geoprocessing tool sometimes I can go the 'Results' window to determine the error. Because I'm clicking on a button on a toolbar created through the Addin Wizard, I don't get to see why my tool is not running.

My question is, how do I do error handling using a python addin? Where I can print our error messages?

Thanks,
Mike

Outcomes