类的使用
com.android.volley.VolleyError
使用VolleyError的程序包
-
com.android.volley中VolleyError的使用
修饰符和类型类说明classError indicating that there was an authentication failure when performing a Request.classIndicates that there was a network error when performing a Volley request.classError indicating that no connection could be established when performing a Volley request.classIndicates that the server's response could not be parsed.classIndicates that the server responded with an error response.classIndicates that the connection or the socket timed out.声明为VolleyError的com.android.volley中的字段修饰符和类型方法说明protected VolleyErrorRequest.parseNetworkError(VolleyError volleyError) Subclasses can override this method to parse 'networkError' and return a more specific error.参数类型为VolleyError的com.android.volley中的方法修饰符和类型方法说明voidRequest.deliverError(VolleyError error) Delivers error message to the ErrorListener that the Request was initialized with.static <T> Response<T>Response.error(VolleyError error) Returns a failed response containing the given error code and an optional localized message displayed to the user.voidResponse.ErrorListener.onErrorResponse(VolleyError error) Callback method that an error has been occurred with the provided error code and optional user-readable message.protected VolleyErrorRequest.parseNetworkError(VolleyError volleyError) Subclasses can override this method to parse 'networkError' and return a more specific error.voidExecutorDelivery.postError(Request<?> request, VolleyError error) voidResponseDelivery.postError(Request<?> request, VolleyError error) Posts an error for the given request.voidDefaultRetryPolicy.retry(VolleyError error) Prepares for the next retry by applying a backoff to the timeout.voidRetryPolicy.retry(VolleyError error) Prepares for the next retry by applying a backoff to the timeout.修饰符和类型方法说明Network.performRequest(Request<?> request) Performs the specified request.voidDefaultRetryPolicy.retry(VolleyError error) Prepares for the next retry by applying a backoff to the timeout.voidRetryPolicy.retry(VolleyError error) Prepares for the next retry by applying a backoff to the timeout. -
com.android.volley.toolbox中VolleyError的使用
参数类型为VolleyError的com.android.volley.toolbox中的方法修饰符和类型方法说明voidRequestFuture.onErrorResponse(VolleyError error) protected voidImageLoader.onGetImageError(String cacheKey, VolleyError error) Handler for when an image failed to load.