Browse documentation

Class ExceptionBlock

Namespace
HarmonyLib
Assembly
0Harmony.dll

An exception block

public class ExceptionBlock
Inheritance
object
ExceptionBlock

Constructors

ExceptionBlock(ExceptionBlockType)

Creates a new ExceptionBlock with the default catch-all type

public ExceptionBlock(ExceptionBlockType blockType)

Parameters

blockType ExceptionBlockType

The ExceptionBlockType

ExceptionBlock(ExceptionBlockType, Type)

Creates a new ExceptionBlock

public ExceptionBlock(ExceptionBlockType blockType, Type catchType = null)

Parameters

blockType ExceptionBlockType

The ExceptionBlockType

catchType Type

The catch type, or null to begin a filter handler. Outside a filter, null catches all exceptions

Fields

blockType

Block type

public ExceptionBlockType blockType

Field Value

ExceptionBlockType

catchType

Catch type, or null for a filter handler

public Type catchType

Field Value

Type
Harmony 3 preview

For the stable release, read the 2.x documentation.