android Volley获取VolleyError的body

来源:互联网 发布:广东高考口语软件 编辑:程序博客网 时间:2024/05/22 07:54
public void onError(VolleyError error) {                byte[] htmlBodyBytes = error.networkResponse.data;                String res = new String(htmlBodyBytes);                Log.e(TAG,"error:"+res);            }
error:{"name":"Not Found","message":"Target company does not exist","code":20111,"status":404,"type":"yii\\web\\NotFoundHttpException"}
原创粉丝点击