
@Override public void onErrorResponse(VolleyError volleyError) { String message = null; if (volleyError instanceof NetworkError) { message = "Cannot connect to Internet...Please check your connection!"; } else if (volleyError instanceof ServerError) { message = "The server could not be found. Please try again after some time!!"; } else if (volleyError instanceof AuthFailureError) { message = "Cannot connect to Internet...Please check your connection!"; } else if (volleyError instanceof ParseError) { message = "Parsing error! Please try again after some time!!"; } else if (volleyError instanceof NoConnectionError) { message = "Cannot connect to Internet...Please check your connection!"; } else if (volleyError instanceof TimeoutError) { message = "Connection TimeOut! Please check your internet connection."; }}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)