docs/api/HarmonyLib.CodeMatcher.ErrorHandler.html
Delegate for error handling
public delegate bool ErrorHandler(CodeMatcher matcher, string error);
| Type | Name | Description |
|---|---|---|
| CodeMatcher | matcher |
The current code matcher
| | System.String | error |
The error message
|
| Type | Description |
|---|---|
| System.Boolean |
True if the error should be suppressed and the matcher should continue (if possible)
|
public ErrorHandler(object object, IntPtr method)
| Type | Name | Description |
|---|---|---|
| System.Object | object | |
| System.IntPtr | method |
public virtual IAsyncResult BeginInvoke(CodeMatcher matcher, string error, AsyncCallback callback, object object)
| Type | Name | Description |
|---|---|---|
| CodeMatcher | matcher | |
| System.String | error | |
| System.AsyncCallback | callback | |
| System.Object | object |
| Type | Description |
|---|---|
| System.IAsyncResult |
public virtual bool EndInvoke(IAsyncResult result)
| Type | Name | Description |
|---|---|---|
| System.IAsyncResult | result |
| Type | Description |
|---|---|
| System.Boolean |
public virtual bool Invoke(CodeMatcher matcher, string error)
| Type | Name | Description |
|---|---|---|
| CodeMatcher | matcher | |
| System.String | error |
| Type | Description |
|---|---|
| System.Boolean |