Delegate CodeMatcher.ErrorHandler
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Delegate for error handling
public delegate bool CodeMatcher.ErrorHandler(CodeMatcher matcher, string error)
Parameters
matcherCodeMatcherThe current code matcher
errorstringThe 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
objectobjectmethodIntPtr
Methods
BeginInvoke(CodeMatcher, string, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(CodeMatcher matcher, string error, AsyncCallback callback, object @object)
Parameters
matcherCodeMatchererrorstringcallbackAsyncCallbackobjectobject
Returns
- IAsyncResult
EndInvoke(IAsyncResult)
public virtual bool EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
- bool
Invoke(CodeMatcher, string)
public virtual bool Invoke(CodeMatcher matcher, string error)
Parameters
matcherCodeMatchererrorstring
Returns
- bool