Table of Contents

Enum ErrorHandlingMode

Namespace
RDCore.SDK.Runtime.Shared
Assembly
RDCore.SDK.dll

An activation's current error-handling policy (MS-VBAL §5.4.4).

public enum ErrorHandlingMode

Fields

Disabled = 0

No handler is active: an InstructionKind's Error outcome propagates out of the activation unchanged. The policy every activation starts with, and the one an On Error GoTo handler's own catch resets to.

GoTo = 2

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, whatever On Error the handler runs), and a Resume, or an On 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.

ResumeNext = 1

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.