Delegate CodeMatcher.ErrorHandler
Delegate for error handling
Assembly: 0Harmony.dll
Syntax
public delegate bool ErrorHandler(CodeMatcher matcher, string error);
Parameters
Type |
Name |
Description |
CodeMatcher |
matcher |
The current code matcher
|
System.String |
error |
The error message
|
Returns
Type |
Description |
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
Type |
Name |
Description |
System.Object |
object |
|
System.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 |
|
System.String |
error |
|
System.AsyncCallback |
callback |
|
System.Object |
object |
|
Returns
Type |
Description |
System.IAsyncResult |
|
EndInvoke(IAsyncResult)
Declaration
public virtual bool EndInvoke(IAsyncResult result)
Parameters
Type |
Name |
Description |
System.IAsyncResult |
result |
|
Returns
Type |
Description |
System.Boolean |
|
Invoke(CodeMatcher, String)
Declaration
public virtual bool Invoke(CodeMatcher matcher, string error)
Parameters
Type |
Name |
Description |
CodeMatcher |
matcher |
|
System.String |
error |
|
Returns
Type |
Description |
System.Boolean |
|