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