类 ExceptionFactory
java.lang.Object
com.digiwin.dap.middleware.dwpay.common.utils.ExceptionFactory
A simple factory used for creating instances of
ClientException
and DMCException.- 从以下版本开始:
- 1.0.0
- 作者:
- fobgochod
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static DwPayExceptioncreateDMCException(StdError errorResult) static DwPayExceptioncreateDMCException(String requestId, String errorCode, String message) static DwPayExceptioncreateDMCException(String requestId, String errorCode, String message, String rawResponseError) static DwPayExceptioncreateInvalidResponseException(String requestId, String message, String rawResponseError) static DwPayExceptioncreateInvalidResponseException(String requestId, String rawResponseError, Throwable cause) static ClientExceptionstatic DwPayExceptioncreateUnknownDMCException(String requestId, int statusCode)
-
构造器详细资料
-
ExceptionFactory
public ExceptionFactory()
-
-
方法详细资料
-
createNetworkException
-
createInvalidResponseException
public static DwPayException createInvalidResponseException(String requestId, String rawResponseError, Throwable cause) -
createInvalidResponseException
public static DwPayException createInvalidResponseException(String requestId, String message, String rawResponseError) -
createDMCException
public static DwPayException createDMCException(String requestId, String errorCode, String message, String rawResponseError) -
createDMCException
-
createUnknownDMCException
-
createDMCException
-