diff --git a/docs-source/src/en/config/api-exception.md b/docs-source/src/en/config/api-exception.md index 7eb264ec..895d8569 100644 --- a/docs-source/src/en/config/api-exception.md +++ b/docs-source/src/en/config/api-exception.md @@ -333,7 +333,7 @@ Please confirm the correct return value type of the current Hook method, modify ::: danger loggerE -Hook initialization failed because got an Exception +Hook initialization failed because got an exception ::: @@ -349,7 +349,7 @@ This is a reminder that an exception occurred during the Hook preparation stage, ::: danger loggerE -Try to hook **NAME**\[**NAME**\] got an Exception +Try to hook **NAME**\[**NAME**\] got an exception ::: @@ -709,7 +709,7 @@ The current Hook Framework needs to support and enable the Resources Hook functi ::: danger loggerE -Resources Hook got an Exception \[**TAG**\] +Resources Hook got an exception \[**TAG**\] ::: @@ -897,7 +897,7 @@ If you must obtain the resources of the Module App itself, please use it directl ::: danger loggerE -Activity Proxy initialization failed because got an Exception +Activity Proxy initialization failed because got an exception ::: @@ -917,7 +917,7 @@ If you cannot find the description of the relevant error log, after eliminating ::: danger loggerE -Activity Proxy got an Exception in msg.what \[**WHAT**\] +Activity Proxy got an exception in msg.what \[**WHAT**\] ::: diff --git a/docs-source/src/zh-cn/config/api-exception.md b/docs-source/src/zh-cn/config/api-exception.md index c4827c84..5f17e292 100644 --- a/docs-source/src/zh-cn/config/api-exception.md +++ b/docs-source/src/zh-cn/config/api-exception.md @@ -317,7 +317,7 @@ method { ::: danger loggerE -Hook initialization failed because got an Exception +Hook initialization failed because got an exception ::: @@ -333,7 +333,7 @@ Hook initialization failed because got an Exception ::: danger loggerE -Try to hook **NAME**\[**NAME**\] got an Exception +Try to hook **NAME**\[**NAME**\] got an exception ::: @@ -677,7 +677,7 @@ Resources Hook type is invalid \[**TAG**\] ::: danger loggerE -Resources Hook got an Exception \[**TAG**\] +Resources Hook got an exception \[**TAG**\] ::: @@ -851,7 +851,7 @@ You cannot inject module resources into yourself ::: danger loggerE -Activity Proxy initialization failed because got an Exception +Activity Proxy initialization failed because got an exception ::: @@ -867,7 +867,7 @@ Activity Proxy initialization failed because got an Exception ::: danger loggerE -Activity Proxy got an Exception in msg.what \[**WHAT**\] +Activity Proxy got an exception in msg.what \[**WHAT**\] ::: diff --git a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreator.kt b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreator.kt index c4565639..bacb19b9 100644 --- a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreator.kt +++ b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiMemberHookCreator.kt @@ -204,7 +204,7 @@ class YukiMemberHookCreator internal constructor(private val packageParam: Packa preHookMembers.forEach { (_, m) -> m.hook() } }.onFailure { if (onHookClassNotFoundFailureCallback == null) - YLog.innerE(msg = "Hook initialization failed because got an Exception", e = it) + YLog.innerE(msg = "Hook initialization failed because got an exception", e = it) else onHookClassNotFoundFailureCallback?.invoke(it) } isDisableCreatorRunHook.not() && hookClass.instance == null -> @@ -703,8 +703,8 @@ class YukiMemberHookCreator internal constructor(private val packageParam: Packa */ private fun hookErrorMsg(e: Throwable, member: Member? = null) = if (hookClass.isPlaceholder) - YLog.innerE("Try to hook ${member?.let { "[$it]" } ?: "nothing"} got an Exception", e) - else YLog.innerE("Try to hook [${hookClass.instance ?: hookClass.name}]${member?.let { "[$it]" } ?: ""} got an Exception", e) + YLog.innerE("Try to hook ${member?.let { "[$it]" } ?: "nothing"} got an exception", e) + else YLog.innerE("Try to hook [${hookClass.instance ?: hookClass.name}]${member?.let { "[$it]" } ?: ""} got an exception", e) /** * 判断是否没有设置 Hook 过程中的任何异常拦截 diff --git a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreator.kt b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreator.kt index bae42a64..e23ee26a 100644 --- a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreator.kt +++ b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/YukiResourcesHookCreator.kt @@ -265,7 +265,7 @@ class YukiResourcesHookCreator internal constructor(internal val packageParam: P } }.onFailure { if (onHookFailureCallback == null) - YLog.innerE("Resources Hook got an Exception [$tag]", it) + YLog.innerE("Resources Hook got an exception [$tag]", it) else onHookFailureCallback?.invoke(it) } } diff --git a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/AppParasitics.kt b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/AppParasitics.kt index 4443c79d..c08fc840 100644 --- a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/AppParasitics.kt +++ b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/AppParasitics.kt @@ -442,7 +442,7 @@ internal object AppParasitics { } } isActivityProxyRegistered = true - }.onFailure { YLog.innerE("Activity Proxy initialization failed because got an Exception", it) } + }.onFailure { YLog.innerE("Activity Proxy initialization failed because got an exception", it) } } /** diff --git a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/activity/delegate/caller/HandlerDelegateCaller.kt b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/activity/delegate/caller/HandlerDelegateCaller.kt index 20f84935..545774c6 100644 --- a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/activity/delegate/caller/HandlerDelegateCaller.kt +++ b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/xposed/parasitic/activity/delegate/caller/HandlerDelegateCaller.kt @@ -76,7 +76,7 @@ internal object HandlerDelegateCaller { set(intent.getParcelableExtra(ActivityProxyConfig.proxyIntentName)) } } - }.onFailure { YLog.innerE("Activity Proxy got an Exception in msg.what [$LAUNCH_ACTIVITY]", it) } + }.onFailure { YLog.innerE("Activity Proxy got an exception in msg.what [$LAUNCH_ACTIVITY]", it) } EXECUTE_TRANSACTION -> msg.obj?.runCatching client@{ ClientTransactionClass.method { name = "getCallbacks" }.ignored().get(this).list().takeIf { it.isNotEmpty() } ?.forEach { item -> @@ -100,7 +100,7 @@ internal object HandlerDelegateCaller { } } } - }?.onFailure { YLog.innerE("Activity Proxy got an Exception in msg.what [$EXECUTE_TRANSACTION]", it) } + }?.onFailure { YLog.innerE("Activity Proxy got an exception in msg.what [$EXECUTE_TRANSACTION]", it) } } return baseInstance?.handleMessage(msg) ?: false }