Skip to content

WeaverExceptionFaultHandler Class

An exception handler with a fault block.
A fault block is similar to a finally block, except it runs only if the code in the try block threw, whereas finally runs always. This differentiates from a catch block in that only one catch block runs if there are multiple.

C#
public sealed class WeaverExceptionFaultHandler : IWeaverExceptionHandler

Inheritance object

Implements IWeaverExceptionHandler

This will get translated into a Mono.Cecil ExceptionHandler block when applied.

Inclusive start ILLabel for Try block.

C#
public ILLabel? TryStart { get; set; }

Inclusive try end ILLabel for Try block.

C#
public ILLabel? TryEnd { get; set; }

Inclusive finally start ILLabel for Fault block.

C#
public ILLabel? HandlerStart { get; set; }

Inclusive finally end ILLabel for Fault block.

C#
public ILLabel? HandlerEnd { get; set; }