java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.warpin.thirdPart.huawei.obs.obs.services.exception.ObsException
所有已实现的接口:
Serializable
直接已知子类:
SelectObjectException

public class ObsException extends RuntimeException
This exception is thrown when the interface fails to be called or access to OBS fails.
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • xmlMessage

      private String xmlMessage
    • errorCode

      private String errorCode
    • errorMessage

      private String errorMessage
    • errorRequestId

      private String errorRequestId
    • errorHostId

      private String errorHostId
    • responseHeaders

      private Map<String,String> responseHeaders
    • responseCode

      private int responseCode
    • responseStatus

      private String responseStatus
    • errorIndicator

      private String errorIndicator
  • 构造器详细资料

    • ObsException

      public ObsException(String message)
    • ObsException

      public ObsException(String message, Throwable e)
    • ObsException

      public ObsException(String message, String xmlMessage)
    • ObsException

      public ObsException(String message, String xmlMessage, Throwable cause)
  • 方法详细资料

    • toString

      public String toString()
      覆盖:
      toString 在类中 Throwable
    • isParsedFromXmlMessage

      private boolean isParsedFromXmlMessage()
    • findXmlElementText

      private String findXmlElementText(String xmlMsg, String elementName)
    • parseXmlMessage

      private void parseXmlMessage(String xmlMsg)
    • getXmlMessage

      public String getXmlMessage()
    • setXmlMessage

      public void setXmlMessage(String xmlMessage)
    • getErrorCode

      public String getErrorCode()
      Obtain the error code returned by the OBS server.
      返回:
      Error code
    • setErrorCode

      public void setErrorCode(String errorCode)
    • getErrorMessage

      public String getErrorMessage()
      Obtain the error details returned by the OBS server.
      返回:
      Error details
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • getErrorRequestId

      public String getErrorRequestId()
      Obtain the request ID returned by the OBS server.
      返回:
      Request ID
    • setErrorRequestId

      public void setErrorRequestId(String errorRequestId)
    • getErrorHostId

      public String getErrorHostId()
      Obtain the server ID.
      返回:
      Server ID
    • setErrorHostId

      public void setErrorHostId(String errorHostId)
    • getResponseHeaders

      public Map<String,String> getResponseHeaders()
      Obtain the response headers of the HTTP request returned by the OBS server.
      返回:
      HTTP response headers
    • setResponseHeaders

      public void setResponseHeaders(Map<String,String> responseHeaders)
    • getResponseCode

      public int getResponseCode()
      Obtain the HTTP status code returned by the OBS server.
      返回:
      HTTP status code
    • setResponseCode

      public void setResponseCode(int responseCode)
    • getResponseStatus

      public String getResponseStatus()
      Obtain the HTTP response description returned by the OBS server.
      返回:
      HTTP response description
    • setResponseStatus

      public void setResponseStatus(String responseStatus)
    • getErrorIndicator

      public String getErrorIndicator()
      Obtain the detailed error indicators returned by the OBS server.
      返回:
      OBS Detailed error indicators returned by the server
    • setErrorIndicator

      public void setErrorIndicator(String errorIndicator)