1
0
drake 3 жил өмнө
parent
commit
c48d12ca35

+ 1 - 0
net/src/main/java/com/drake/net/NetConfig.kt

@@ -116,6 +116,7 @@ object NetConfig {
             is NullPointerException -> app.getString(R.string.net_null_error)
             is NoCacheException -> app.getString(R.string.net_no_cache_error)
             is ResponseException -> message
+            is HttpFailureException -> app.getString(R.string.request_failure)
             is NetException -> app.getString(R.string.net_error)
             else -> app.getString(R.string.net_other_error)
         }

+ 2 - 1
net/src/main/res/values/strings.xml

@@ -25,9 +25,10 @@
     <string name="net_download_error">下载过程发生错误</string>
     <string name="net_no_cache_error">读取缓存错误</string>
     <string name="net_parse_error">解析数据时发生异常</string>
+    <string name="request_failure">请求失败</string>
     <string name="net_request_error">请求参数错误</string>
     <string name="net_server_error">服务响应错误</string>
-    <string name="net_null_error">数据为空</string>
+    <string name="net_null_error">发生空异常</string>
     <string name="net_error">未知网络错误</string>
     <string name="net_other_error">未知错误</string>
     <string name="no_error_message">无错误信息</string>