Show / Hide Table of Contents

Delegate CodeMatcher.ErrorHandler

Delegate for error handling

Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public delegate bool CodeMatcher.ErrorHandler(CodeMatcher matcher, string error)
Parameters
Type Name Description
CodeMatcher matcher

The current code matcher

string error

The error message

Returns
Type Description
bool

True if the error should be suppressed and the matcher should continue (if possible)

Constructors

ErrorHandler(object, IntPtr)

Declaration
public ErrorHandler(object @object, IntPtr method)
Parameters
Type Name Description
object object
IntPtr method

Methods

BeginInvoke(CodeMatcher, string, AsyncCallback, object)

Declaration
public virtual IAsyncResult BeginInvoke(CodeMatcher matcher, string error, AsyncCallback callback, object @object)
Parameters
Type Name Description
CodeMatcher matcher
string error
AsyncCallback callback
object object
Returns
Type Description
IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual bool EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
bool

Invoke(CodeMatcher, string)

Declaration
public virtual bool Invoke(CodeMatcher matcher, string error)
Parameters
Type Name Description
CodeMatcher matcher
string error
Returns
Type Description
bool
In this article
Back to top Generated by DocFX