With an Attached handler: WHEN ERROR IN protected-statement [protected-statement,...] . . . USE handler-statement [handler-statement,...] . . . END WHEN With a Detached Handler: WHEN ERROR USE handler-name protected-statement [protected-statement,...] . . . END WHEN HANDLER handler-name handler-statement [handler-statement,...] . . . END HANDLER