In this chapter:
An exception is an event you don’t expect. In a well-written application, you don’t expect attempts to access an invalid memory address or divide a value by
0. Nevertheless, such errors do occur. The CPU is responsible for catching invalid memory accesses and divides by
0, and it will raise an exception in response to these errors. When the CPU raises an exception, it’s known as a hardware exception. Later in this chapter, we’ll see that the operating system and your applications ...