trap

A program interrupt, usually caused by some exceptional situation in the user program. In most cases, the system performs some action, then returns control to the program.