Class ServiceException

All Implemented Interfaces:
Serializable

public class ServiceException extends WechatPayException
发送HTTP请求成功,返回异常时抛出。例如返回状态码小于200或大于等于300、返回体参数不完整。
See Also:
  • Constructor Details

    • ServiceException

      public ServiceException(HttpRequest httpRequest, int httpStatusCode, String responseBody)
      返回状态码小于200或大于300调用
      Parameters:
      httpRequest - http请求
      httpStatusCode - http状态码
      responseBody - http返回体
  • Method Details

    • getSerialVersionUID

      public static long getSerialVersionUID()
      获取序列化版本UID
      Returns:
      UID
    • getHttpRequest

      public HttpRequest getHttpRequest()
      获取HTTP请求
      Returns:
      HTTP请求
    • getResponseBody

      public String getResponseBody()
      获取HTTP返回体
      Returns:
      HTTP返回体
    • getHttpStatusCode

      public int getHttpStatusCode()
      获取HTTP状态码
      Returns:
      HTTP状态码
    • getErrorCode

      public String getErrorCode()
    • getErrorMessage

      public String getErrorMessage()