Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By : Donald Eric Pimpler, Eric Pimpler
Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By: Donald Eric Pimpler, Eric Pimpler

Overview of this book

Table of Contents (22 chapters)
Programming ArcGIS with Python Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 11. Error Handling and Troubleshooting

In this chapter, we will cover the following recipes:

  • Exploring the default Python error message

  • Adding Python exception handling structures (try/except/else)

  • Retrieving tool messages with GetMessages()

  • Filtering tool messages by the level of severity

  • Testing for and responding to specific error messages