[5.2.8]
[shuttle_p] [网络接口失败添加错误处理]
This commit is contained in:
@@ -14,5 +14,8 @@ public interface OchCommonServiceCallback< T > {
|
||||
|
||||
default void onError() {
|
||||
|
||||
}
|
||||
default void onError(String msg) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class OchCommonSubscribeImpl<T : BaseData>(
|
||||
override fun onError(e: Throwable) {
|
||||
super.onError(e)
|
||||
CallerLogger.e("$flavorTag$TAG", "$apiName: onError() ${e.message}")
|
||||
callback?.onError()
|
||||
callback?.onError("$apiName: onError() ${e.message}")
|
||||
}
|
||||
|
||||
override fun onError(message: String, code: Int) {
|
||||
|
||||
Reference in New Issue
Block a user