Browse documentation

Delegate CodeMatcher.ErrorHandler

Namespace
HarmonyLib
Assembly
0Harmony.dll

Delegate for error handling

public delegate bool CodeMatcher.ErrorHandler(CodeMatcher matcher, string error)

Parameters

matcher CodeMatcher

The current code matcher

error string

The error message

Returns

bool

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

Constructors

ErrorHandler(object, IntPtr)

public ErrorHandler(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(CodeMatcher, string, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(CodeMatcher matcher, string error, AsyncCallback callback, object @object)

Parameters

matcher CodeMatcher
error string
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual bool EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

bool

Invoke(CodeMatcher, string)

public virtual bool Invoke(CodeMatcher matcher, string error)

Parameters

matcher CodeMatcher
error string

Returns

bool
Harmony 3 preview

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