我遇到H2数据库异常消息的问题。消息的语言对应于OS语言(我使用的是Windows)。是否可以关闭本地化功能以仅在英语上获取消息?
答案 0 :(得分:0)
不,目前不可能,但是:
H2错误消息采用当前语言,并且也始终使用英语(连接到已翻译的消息)。
为什么你只想用英语?顺便说一下,每条消息都有一个错误代码(SQLException.getErrorCode())。
(我将此作为答案添加,因为提出问题的人似乎没有阅读评论。)
答案 1 :(得分:-1)
10-05 20:32:41.195 15373-15373/? D/NetworkError﹕ stream was reset: PROTOCOL_ERROR
java.io.IOException: stream was reset: PROTOCOL_ERROR
at com.squareup.okhttp.internal.spdy.SpdyStream.getResponseHeaders(SpdyStream.java:145)
at com.squareup.okhttp.internal.http.SpdyTransport.readResponseHeaders(SpdyTransport.java:104)
at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:830)
at com.squareup.okhttp.internal.http.HttpEngine.access$200(HttpEngine.java:95)
at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:823)
at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:684)
at com.squareup.okhttp.Call.getResponse(Call.java:272)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:228)
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:199)
at com.squareup.okhttp.Call.execute(Call.java:79)