- Practical Maya Programming with Python
- Robert Galanakis
- 139字
- 2021-09-03 10:05:26
Chapter 3. Dealing with Errors
Errors happen. Having code that can handle errors properly is essential. In this chapter, we will learn how to write code that gracefully handles errors in Maya Python. We'll start by understanding some technical basics about Python exceptions, such as the try
/except
statement and tracebacks. After that we will cover some golden rules for handling exceptions. We will map those guidelines to the way Maya works, and learn how to handle errors in Maya gracefully. We will use all of this knowledge to build a high-level error handler. The error handler will be an exception hook that will capture any relevant unhandled Python exception raised in Maya, and send an e-mail to us. Finally, we'll look at various ways to improve the error handler to make it useful in a production environment.
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- Python+Tableau數據可視化之美
- C語言程序設計習題與實驗指導
- Hands-On Kubernetes on Windows
- OpenStack Networking Essentials
- Arduino可穿戴設備開發
- Troubleshooting Citrix XenApp?
- JavaScript機器人編程指南
- PhoneGap 4 Mobile Application Development Cookbook
- Mastering Unreal Engine 4.X
- 網絡綜合布線與組網實戰指南
- 大話代碼架構:項目實戰版
- 區塊鏈:技術與場景
- 零基礎入門學習C語言:帶你學C帶你飛
- Learning Azure DocumentDB