- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- java.io.IOException
 -  
            
- java.net.HttpRetryException
 
 
 
 
 
-  
       
- All Implemented Interfaces:
 -  
         
Serializable 
public class HttpRetryException extends IOException
抛出表示HTTP请求需要重试,但由于启用了流式传输模式,因此无法自动重试。- 从以下版本开始:
 - 1.5
 - 另请参见:
 - Serialized Form
 
 
-  
        
       
-  
             
构造方法摘要
构造方法 Constructor 描述 HttpRetryException(String detail, int code)从指定的响应代码和异常详细消息构造一个新的HttpRetryExceptionHttpRetryException(String detail, int code, String location)构造一个新的HttpRetryException与详细的消息responseCode和位置响应标题字段的内容。 
-  
             
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 StringgetLocation()如果由重定向导致错误,则返回“位置”头域的值。StringgetReason()返回一个字符串,解释为什么不能重试http请求。intresponseCode()返回http响应代码-  
               
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
-  
               
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
HttpRetryException
public HttpRetryException(String detail, int code)
从指定的响应代码和异常详细信息构造一个新的HttpRetryException- 参数
 -  
              
detail- 详细信息。 -  
              
code- 来自服务器的HTTP响应代码。 
 
 -  
 
 -