public class HttpRetryException extends IOException
Constructor and Description |
---|
HttpRetryException(String detail, int code)
构建了从指定的响应代码和异常详细信息的一个新的
HttpRetryException
|
HttpRetryException(String detail, int code, String location)
构建了一种新的
HttpRetryException 详细消息响应代码和内容的位置响应头字段。
|
Modifier and Type | Method and Description |
---|---|
String |
getLocation()
如果重定向导致的错误返回位置头字段的值。
|
String |
getReason()
返回一个字符串,解释为什么HTTP请求不能重试。
|
int |
responseCode()
返回HTTP响应代码
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HttpRetryException(String detail, int code)
HttpRetryException
detail
-详细信息。
code
- HTTP响应代码从服务器。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.