An exception is an event that occurs when:
Some types of exceptions may provide error codes. An error code reports additional information about the error.
An example of the notation used to show an exception and error code is shown below:
#PF(fault code)
where:
When a call is made to an exception handler procedure, the processor automatically saves the state of the EFLAGS register on the procedure stack. When an exception is handled with a task switch, the state of the EFLAGS register is saved in the TSS for the task being suspended.