Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

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

$
0
0
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/...0000000q000000

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

Viewing all articles
Browse latest Browse all 2485

Trending Articles