WHENEVER

The WHENEVER statement specifies the action to be taken when a specified exception condition occurs.