Skip to content

Commit 1068db7

Browse files
committed
Update api-exception documentation
1 parent 2805ab3 commit 1068db7

File tree

2 files changed

+45
-11
lines changed

2 files changed

+45
-11
lines changed

docs-source/src/en/config/api-exception.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ The exception description here will only synchronize the latest API version, and
1616

1717
::: danger loggerE
1818

19-
Could not found XposedBridge in current space! Aborted
19+
Could not found any available Hook APIs in current environment! Aborted
2020

2121
:::
2222

2323
**Abnormal**
2424

25-
Your Hook Framework is not working or `XposedBridge` has not been successfully loaded.
25+
Your Hook Framework is not working or did not successfully load the current Hook API.
2626

2727
**Solution**
2828

@@ -150,13 +150,13 @@ After confirming that the problem is not caused by your own code, you can submit
150150

151151
::: danger loggerE
152152

153-
YukiHookAPI bind initZygote failed
153+
An exception occurred when YukiHookAPI loading Xposed Module
154154

155155
:::
156156

157157
**Abnormal**
158158

159-
`YukiHookAPI` encountered an unhandled exception when trying to load the Xposed native interface `initZygote` method.
159+
`YukiHookAPI` encountered an unhandled exception when trying to load a Xposed Module using the Xposed native interface.
160160

161161
**Solution**
162162

@@ -1059,6 +1059,22 @@ This is not an API exception, please be careful check your own code for problems
10591059
10601060
###### exception
10611061

1062+
::: danger IllegalStateException
1063+
1064+
YukiHookAPI cannot support current Hook API or cannot find any available Hook APIs in current environment
1065+
1066+
:::
1067+
1068+
**Abnormal**
1069+
1070+
`YukiHookAPI` does not support the Hook API used by the current environment or there is no Hook API that can be called.
1071+
1072+
**Solution**
1073+
1074+
Please make sure you have loaded the `encase` method of `YukiHookAPI` in the correct place. For details, please refer to [Use as Xposed Module Configs](../config/xposed-using) and [Use as Hook API Configs](../config/api-using).
1075+
1076+
###### exception
1077+
10621078
::: danger RuntimeException
10631079

10641080
!!!DO NOT ALLOWED!!! You cannot hook or reflection to call the internal class of the YukiHookAPI itself, The called class is \[**CLASS**\]
@@ -1841,7 +1857,9 @@ encase {
18411857

18421858
**Solution**
18431859

1844-
`moduleAppResources` requires the current Hook Framework to support the `initZygote` function, please check and try again.
1860+
This situation hardly exists, unless there is a problem with the target Hook Framework itself.
1861+
1862+
If this problem does occur, please provide feedback with detailed logs.
18451863

18461864
###### exception
18471865

docs-source/src/zh-cn/config/api-exception.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ pageClass: hidden-anchor-page
1616

1717
::: danger loggerE
1818

19-
Could not found XposedBridge in current space! Aborted
19+
Could not found any available Hook APIs in current environment! Aborted
2020

2121
:::
2222

2323
**异常原因**
2424

25-
你的 Hook Framework 未在工作或并未成功装载 `XposedBridge`
25+
你的 Hook Framework 未在工作或并未成功装载当前 Hook API
2626

2727
**解决方案**
2828

@@ -142,13 +142,13 @@ YukiHookAPI try to load HookEntryClass failed
142142

143143
::: danger loggerE
144144

145-
YukiHookAPI bind initZygote failed
145+
An exception occurred when YukiHookAPI loading Xposed Module
146146

147147
:::
148148

149149
**异常原因**
150150

151-
`YukiHookAPI` 在尝试装载 Xposed 原生接口 `initZygote` 方法时发生了不能处理的异常
151+
`YukiHookAPI` 在尝试使用 Xposed 原生接口装载 Xposed 模块时发生了不能处理的异常
152152

153153
**解决方案**
154154

@@ -670,7 +670,7 @@ Resources Hook type is invalid \[**TAG**\]
670670

671671
**解决方案**
672672

673-
`YukiHookAPI` 会尝试在 `initZygote``handleInitPackageResources` 中装载 Resources Hook,若全部装载失败可能会发生此异常,当前 Hook Framework 需要支持并启用资源钩子(Resources Hook)功能,请检查后再试一次。
673+
`YukiHookAPI` 会尝试在 `initZygote``handleInitPackageResources` 中装载 Resources Hook,若全部装载失败可能会发生此异常,当前 Hook Framework 需要支持并启用资源钩子 (Resources Hook) 功能,请检查后再试一次。
674674

675675
###### exception
676676

@@ -1000,6 +1000,22 @@ An exception occurred during AppLifecycle event
10001000
10011001
###### exception
10021002

1003+
::: danger IllegalStateException
1004+
1005+
YukiHookAPI cannot support current Hook API or cannot found any available Hook APIs in current environment
1006+
1007+
:::
1008+
1009+
**异常原因**
1010+
1011+
`YukiHookAPI` 不支持当前环境使用的 Hook API 或不存在 Hook API 可被调用。
1012+
1013+
**解决方案**
1014+
1015+
请确认你在正确的地方装载了 `YukiHookAPI``encase` 方法,详情请参考 [作为 Xposed 模块使用的相关配置](../config/xposed-using) 以及 [作为 Hook API 使用的相关配置](../config/api-using)
1016+
1017+
###### exception
1018+
10031019
::: danger RuntimeException
10041020

10051021
!!!DO NOT ALLOWED!!! You cannot hook or reflection to call the internal class of the YukiHookAPI itself, The called class is \[**CLASS**\]
@@ -1763,7 +1779,7 @@ encase {
17631779

17641780
**解决方案**
17651781

1766-
`moduleAppResources` 需要当前 Hook Framework 支持 `initZygote` 功能,请检查后再试一次
1782+
这种情况几乎不存在,除非目标 Hook Framework 自身存在问题,若真的发生了此问题,请携带详细日志进行反馈
17671783

17681784
###### exception
17691785

0 commit comments

Comments
 (0)