Back to Harmony

Delegate CodeMatcher.ErrorHandler

docs/api/HarmonyLib.CodeMatcher.ErrorHandler.html

2.4.2.02.0 KB
Original Source

Delegate CodeMatcher.ErrorHandler

Delegate for error handling

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public delegate bool ErrorHandler(CodeMatcher matcher, string error);
Parameters
TypeNameDescription
CodeMatchermatcher

The current code matcher

| | System.String | error |

The error message

|

Returns
TypeDescription
System.Boolean

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
TypeNameDescription
System.Objectobject
System.IntPtrmethod

Methods

BeginInvoke(CodeMatcher, String, AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(CodeMatcher matcher, string error, AsyncCallback callback, object object)
Parameters
TypeNameDescription
CodeMatchermatcher
System.Stringerror
System.AsyncCallbackcallback
System.Objectobject
Returns
TypeDescription
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual bool EndInvoke(IAsyncResult result)
Parameters
TypeNameDescription
System.IAsyncResultresult
Returns
TypeDescription
System.Boolean

Invoke(CodeMatcher, String)

Declaration
public virtual bool Invoke(CodeMatcher matcher, string error)
Parameters
TypeNameDescription
CodeMatchermatcher
System.Stringerror
Returns
TypeDescription
System.Boolean