ERROR Keyword Within the WHENEVER statement (and only in this context), the keyword ERROR is a synonym for the SQLERROR keyword.