Class ServiceException
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.ServiceException
- All Implemented Interfaces:
Serializable
发送HTTP请求成功,返回异常时抛出。例如返回状态码小于200或大于等于300、返回体参数不完整。
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceException(HttpRequest httpRequest, int httpStatusCode, String responseBody) 返回状态码小于200或大于300调用 -
Method Summary
Modifier and TypeMethodDescription获取HTTP请求int获取HTTP状态码获取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
-
ServiceException
返回状态码小于200或大于300调用- Parameters:
httpRequest- http请求httpStatusCode- http状态码responseBody- http返回体
-
-
Method Details
-
getSerialVersionUID
public static long getSerialVersionUID()获取序列化版本UID- Returns:
- UID
-
getHttpRequest
获取HTTP请求- Returns:
- HTTP请求
-
getResponseBody
获取HTTP返回体- Returns:
- HTTP返回体
-
getHttpStatusCode
public int getHttpStatusCode()获取HTTP状态码- Returns:
- HTTP状态码
-
getErrorCode
-
getErrorMessage
-