Enum ErrorHandlingMode
An activation's current error-handling policy (MS-VBAL §5.4.4).
public enum ErrorHandlingMode
Fields
No handler is active: an
InstructionKind'sErroroutcome propagates out of the activation unchanged. The policy every activation starts with, and the one anOn Error GoTohandler's own catch resets to.On Error GoTo<label>: an error branches to HandlerTarget. Catching one resets the policy to Disabled while the handler runs (a second error inside the handler body itself propagates rather than re-entering the same handler, whateverOn Errorthe handler runs), and aResume, or anOn Error GoTo -1, that ends the handler sets the policy to what it is to be after it (AfterHandling): GoTo the same label, unless the handler said otherwise.On Error Resume Next: an error is caught silently and execution continues with the statement right after the one that raised it. Unlike GoTo, catching one does not reset the policy: every later error in the same activation is caught the same way.