- 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.
- Arduino by Example
- R語言數(shù)據(jù)可視化實戰(zhàn)
- Blockly創(chuàng)意趣味編程
- Python:Master the Art of Design Patterns
- D3.js By Example
- 智能手機APP UI設計與應用任務教程
- Fast Data Processing with Spark(Second Edition)
- Mastering HTML5 Forms
- 從零開始學UI:概念解析、實戰(zhàn)提高、突破規(guī)則
- Beginning PHP
- PHP 7 Programming Blueprints
- 歐姆龍PLC編程指令與梯形圖快速入門
- Mastering Responsive Web Design
- 新手學ASP動態(tài)網(wǎng)頁開發(fā)
- 鋒利的SQL