01-Introduction

We know that 0 cannot be used as a divisor, but what should we do when a program tries to divide a number by 0 or open a non-existent file? How can we keep the program running stably? In this lesson, we'll cover exception handling.

02-Answer to Previous Exercise

03-What are Exceptions

04-Defining Exceptions

05-Throwing and Handling Exceptions

06-Common Runtime Exceptions

07-Using Option

08-Introduction to Log Printing

09-Exercise

Define a basic exception system and log system for your program.

Programmer Wanfeng focuses on AI programming training. Beginners can start making AI projects after watching his tutorial 《30 Lessons · AI Programming Training Camp》 co-produced with Turing Community.

🎓 AI 编程实战课程

想系统学习 AI 编程?程序员晚枫的 AI 编程实战课 帮你从零上手!