A condition, often an error, that causes the program
to branch to a different routine
. The terms interrupt
are very close in meaning. Both can be used to refer to either hardware or software. The only real difference is that an exception
usually indicates an error condition.