类 ClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.digiwin.dap.middleware.dwpay.ClientException
- 所有已实现的接口:
Serializable
This exception is the one thrown by the client side when accessing DMC.
- 从以下版本开始:
- 1.0.0
- 作者:
- fobgochod
- 另请参阅:
-
构造器概要
构造器构造器说明Creates a default instance.ClientException(String errorMessage) Creates an instance with error message.ClientException(String errorMessage, String errorCode, String requestId) Creates an instance with error message, error code, request IdClientException(String errorMessage, String errorCode, String requestId, Throwable cause) Creates an instance with error message, error code, request Id and an exception.ClientException(String errorMessage, Throwable cause) Creates an instance with error message and an exception.ClientException(Throwable cause) Creates an instance with an exception -
方法概要
修饰符和类型方法说明Get error code.Get error message.Gets request id.
-
构造器详细资料
-
ClientException
public ClientException()Creates a default instance. -
ClientException
Creates an instance with error message.- 参数:
errorMessage- Error message.
-
ClientException
Creates an instance with an exception- 参数:
cause- An exception.
-
ClientException
Creates an instance with error message and an exception.- 参数:
errorMessage- Error message.cause- An exception.
-
ClientException
Creates an instance with error message, error code, request Id- 参数:
errorMessage- Error message.errorCode- Error code, which typically is from a set of predefined errors. The handler code could do action based on this.requestId- Request Id.
-
ClientException
Creates an instance with error message, error code, request Id and an exception.- 参数:
errorMessage- Error message.errorCode- Error code.requestId- Request Id.cause- An exception.
-
-
方法详细资料
-
getErrorMessage
Get error message.- 返回:
- Error message in string.
-
getErrorCode
Get error code.- 返回:
- Error code.
-
getRequestId
Gets request id.- 返回:
- The request Id.
-
getMessage
- 覆盖:
getMessage在类中Throwable
-