类 ServiceException

所有已实现的接口:
Serializable
直接已知子类:
EMCException

public class ServiceException extends RuntimeException
This is the base exception class to represent any expected or unexpected EMC server side errors.
从以下版本开始:
1.0.0
作者:
fobgochod
另请参阅:
  • 构造器详细资料

    • ServiceException

      public ServiceException()
      Creates a default instance.
    • ServiceException

      public ServiceException(String errorMessage)
      Creates an instance with the error message.
      参数:
      errorMessage - Error message.
    • ServiceException

      public ServiceException(Throwable cause)
      Creates an instance with a Throwable instance.
      参数:
      cause - A Throwable instance.
    • ServiceException

      public ServiceException(String errorMessage, Throwable cause)
      Creates an instance with a Throwable instance and error message.
      参数:
      errorMessage - Error message.
      cause - A Throwable instance.
    • ServiceException

      public ServiceException(String errorMessage, String errorCode, String requestId, String hostId)
      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 - A Throwable instance 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 - A Throwable instance indicates a specific exception.
  • 方法详细资料

    • getErrorMessage

      public String getErrorMessage()
      Gets error message.
      返回:
      Error message.
    • getErrorCode

      public String getErrorCode()
      Gets the error code.
      返回:
      The error code in string.
    • getRequestId

      public String getRequestId()
      Gets the request id.
      返回:
      The request Id in string.
    • getHostId

      public String getHostId()
      Gets the host id.
      返回:
      The host Id in string.
    • getRawResponseError

      public String getRawResponseError()
      Gets the error message in EMC response.
      返回:
      Error response in string.
    • setRawResponseError

      public void setRawResponseError(String rawResponseError)
      Sets the error response from EMC.
      参数:
      rawResponseError - The error response from EMC.
    • getMessage

      public String getMessage()
      覆盖:
      getMessage 在类中 Throwable