Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.wechat.pay.java.core.exception.WechatPayException
com.wechat.pay.java.core.exception.HttpException
- All Implemented Interfaces:
Serializable
发送HTTP请求失败时抛出。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpException
(HttpRequest httpRequest, Throwable cause) 发送请求失败时调用HttpException
(String message, Throwable cause) 构造请求参数失败时调用 -
Method Summary
Modifier and TypeMethodDescription获取HTTP请求static long
获取序列化版本UIDMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpException
构造请求参数失败时调用- Parameters:
message
- 错误信息cause
- 引起失败的原始异常
-
HttpException
发送请求失败时调用- Parameters:
httpRequest
- http请求cause
- 引起失败的原始异常
-
-
Method Details
-
getSerialVersionUID
public static long getSerialVersionUID()获取序列化版本UID- Returns:
- UID
-
getHttpRequest
获取HTTP请求- Returns:
- HTTP请求
-