Oracle Message PCC-00007 - Invalid WHENEVER condition at column number in line number of file string

ERRORInvalid WHENEVER condition at column number in line number of file string
CAUSEA condition other than SQLERROR, SQLWARNING, or NOT FOUND was specified in an EXEC SQL WHENEVER statement, or one of these was used, but spelled incorrectly.
ACTIONCorrect the spelling of the WHENEVER condition or use a host- language IF statement to test the special condition.