The On
Error
statement modifies the current error handling state. It may be used in one of four ways:
On
Error
Goto
-1
resets the "current" exception to Nothing
.On
Error
Goto
0
resets the "current" error handler location to Nothing
On
Error
Goto
LabelName establishes the label as the "current" error handler location.On
Error
Resume
, with an optional Next
, establishes the Resume
behavior as the "current" error handler location.On
Error
ErrorClause StatementTerminatorResume
[ Next
] |GoTo
-
1
|GoTo
0
|