

Vectored exception handling is an extension to structured exception handling. Structured exception handling enables you to have complete control over the handling of exceptions, provides support for debuggers, and is usable across all programming languages and machines. Therefore, your code will handle hardware and software exceptions identically. Structured exception handling is a mechanism for handling both hardware and software exceptions. For example, the system can detect when an invalid parameter value is specified. Software exceptions are initiated explicitly by applications or the operating system. They can result from the execution of certain instruction sequences, such as division by zero or an attempt to access an invalid memory address. Hardware exceptions are initiated by the CPU. There are two kinds of exceptions: hardware exceptions and software exceptions.

An exception is an event that occurs during the execution of a program, and requires the execution of code outside the normal flow of control.
