ERROR is not a reserved word of Full BASIC.
Therefore ERROR is recognized as a numeric variable,
and then ON ERROR GOTO is translated as a Minimal BASIC compatible statement
ON numeric-expression GOTO line-number, line-number, ... , line-number
Thus when the value of ERROR is zero, an exception of extype10001 shall be raised.
Notice that Full BASIC uses structured exception handling such as
WHEN EXCEPTION IN ~ USE ~ END WHEN
or
WHEN EXCEPTION USE handler-name ~ END WHEN
Supplement
Even if the mode is switched to Microsoft BASIC compatible, ON ERROR GOTO can not be used.