Update api-exception documentation

This commit is contained in:
2023-01-05 19:28:31 +08:00
parent 694c311313
commit 0dc100d1bc
2 changed files with 36 additions and 0 deletions

View File

@@ -630,6 +630,26 @@ Please check if the `Class` subscripted by the `index` number of `param` in the
::: danger loggerE
Invoke original Member \[**MEMBER**\] failed
:::
**Abnormal**
An error occurred when using `HookParam.callOriginal`, `HookParam.invokeOriginal`, `method { ... }.get(...).original()` to call the original method without Hook.
**Solution**
Under normal circumstances, this error will basically not occur.
If this error occurs, it may be a problem with the currently used Hook Framework.
After troubleshooting your own code problems, please provide detailed logs for feedback.
###### exception
::: danger loggerE
Resources Hook condition name/type cannot be empty \[**TAG**\]
:::

View File

@@ -614,6 +614,22 @@ method {
::: danger loggerE
Invoke original Member \[**MEMBER**\] failed
:::
**异常原因**
在使用 `HookParam.callOriginal``HookParam.invokeOriginal``method { ... }.get(...).original()` 调用未经 Hook 的原始方法时发生错误。
**解决方案**
一般情况下,此错误基本上不会发生,若发生此错误,可能为当前使用的 Hook Framework 问题,排除自身代码的问题后,请携带详细日志进行反馈。
###### exception
::: danger loggerE
Resources Hook condition name/type cannot be empty \[**TAG**\]
:::