Skip to content

WeaverExceptionCatchHandler Class

An exception handler with a catch block.

C#
public class WeaverExceptionCatchHandler : IWeaverExceptionHandler

Inheritance object

Implements IWeaverExceptionHandler

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

WeaverExceptionCatchHandler(TypeReference)

Section titled “WeaverExceptionCatchHandler(TypeReference)”

An exception handler with a catch block.

C#
public WeaverExceptionCatchHandler(TypeReference catchType)

catchType TypeReference
The type of exceptions to catch.

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

The type of exception to catch.

C#
public TypeReference CatchType { get; }

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 catch start ILLabel for Catch block.

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

Inclusive catch end ILLabel for Catch block.

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