类 ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.digiwin.dap.middleware.emc.ServiceException
- 所有已实现的接口:
Serializable
- 直接已知子类:
EMCException
This is the base exception class to represent any expected or unexpected EMC
server side errors.
- 从以下版本开始:
- 1.0.0
- 作者:
- fobgochod
- 另请参阅:
-
构造器概要
构造器构造器说明Creates a default instance.ServiceException(String errorMessage) Creates an instance with the error message.ServiceException(String errorMessage, String errorCode, String requestId, String hostId) Creates an instance with error message, error code, request id, host id.ServiceException(String errorMessage, String errorCode, String requestId, String hostId, String rawResponseError, Throwable cause) Creates an instance with error message, error code, request id, host id, EMC response error, and a Throwable instance.ServiceException(String errorMessage, String errorCode, String requestId, String hostId, Throwable cause) Creates an instance with error message, error code, request id, host id.ServiceException(String errorMessage, Throwable cause) Creates an instance with aThrowableinstance and error message.ServiceException(Throwable cause) Creates an instance with aThrowableinstance. -
方法概要
修饰符和类型方法说明Gets the error code.Gets error message.Gets the host id.Gets the error message in EMC response.Gets the request id.voidsetRawResponseError(String rawResponseError) Sets the error response from EMC.
-
构造器详细资料
-
ServiceException
public ServiceException()Creates a default instance. -
ServiceException
Creates an instance with the error message.- 参数:
errorMessage- Error message.
-
ServiceException
Creates an instance with aThrowableinstance.- 参数:
cause- AThrowableinstance.
-
ServiceException
Creates an instance with aThrowableinstance and error message.- 参数:
errorMessage- Error message.cause- AThrowableinstance.
-
ServiceException
Creates an instance with error message, error code, request id, host id.- 参数:
errorMessage- Error message.errorCode- Error code.requestId- Request Id.hostId- Host Id.
-
ServiceException
public ServiceException(String errorMessage, String errorCode, String requestId, String hostId, Throwable cause) Creates an instance with error message, error code, request id, host id.- 参数:
errorMessage- Error message.errorCode- Error code.requestId- Request Id.hostId- Host Id.cause- AThrowableinstance indicates a specific exception.
-
ServiceException
public ServiceException(String errorMessage, String errorCode, String requestId, String hostId, String rawResponseError, Throwable cause) Creates an instance with error message, error code, request id, host id, EMC response error, and a Throwable instance.- 参数:
errorMessage- Error message.errorCode- Error code.requestId- Request Id.hostId- Host Id.rawResponseError- EMC error message in response.cause- AThrowableinstance indicates a specific exception.
-
-
方法详细资料
-
getErrorMessage
Gets error message.- 返回:
- Error message.
-
getErrorCode
Gets the error code.- 返回:
- The error code in string.
-
getRequestId
Gets the request id.- 返回:
- The request Id in string.
-
getHostId
Gets the host id.- 返回:
- The host Id in string.
-
getRawResponseError
Gets the error message in EMC response.- 返回:
- Error response in string.
-
setRawResponseError
Sets the error response from EMC.- 参数:
rawResponseError- The error response from EMC.
-
getMessage
- 覆盖:
getMessage在类中Throwable
-