public class ServiceException extends RuntimeException
| 构造器和说明 |
|---|
ServiceException()
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,
DMC 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 a
Throwable instance and error message. |
ServiceException(Throwable cause)
Creates an instance with a
Throwable instance. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getErrorCode()
Gets the error code.
|
String |
getErrorMessage()
Gets error message.
|
String |
getHostId()
Gets the host id.
|
String |
getMessage() |
String |
getRawResponseError()
Gets the error message in DMC response.
|
String |
getRequestId()
Gets the request id.
|
void |
setRawResponseError(String rawResponseError)
Sets the error response from DMC.
|
public ServiceException()
public ServiceException(String errorMessage)
errorMessage - Error message.public ServiceException(Throwable cause)
Throwable instance.cause - A Throwable instance.public ServiceException(String errorMessage, Throwable cause)
Throwable instance and error message.errorMessage - Error message.cause - A Throwable instance.public ServiceException(String errorMessage, String errorCode, String requestId, String hostId)
errorMessage - Error message.errorCode - Error code.requestId - Request Id.hostId - Host Id.public ServiceException(String errorMessage, String errorCode, String requestId, String hostId, Throwable cause)
errorMessage - Error message.errorCode - Error code.requestId - Request Id.hostId - Host Id.cause - A Throwable instance indicates a specific exception.public ServiceException(String errorMessage, String errorCode, String requestId, String hostId, String rawResponseError, Throwable cause)
errorMessage - Error message.errorCode - Error code.requestId - Request Id.hostId - Host Id.rawResponseError - DMC error message in response.cause - A Throwable instance indicates a specific exception.public String getErrorMessage()
public String getErrorCode()
public String getRequestId()
public String getHostId()
public String getRawResponseError()
public void setRawResponseError(String rawResponseError)
rawResponseError - The error response from DMC.public String getMessage()
getMessage 在类中 ThrowableCopyright © 2025. All rights reserved.