Class ExceptionBlock
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
An exception block
public class ExceptionBlock
- Inheritance
-
objectExceptionBlock
Constructors
ExceptionBlock(ExceptionBlockType)
Creates a new ExceptionBlock with the default catch-all type
public ExceptionBlock(ExceptionBlockType blockType)
Parameters
blockTypeExceptionBlockType
ExceptionBlock(ExceptionBlockType, Type)
Creates a new ExceptionBlock
public ExceptionBlock(ExceptionBlockType blockType, Type catchType = null)
Parameters
blockTypeExceptionBlockTypecatchTypeTypeThe 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
catchType
Catch type, or null for a filter handler
public Type catchType
Field Value
- Type