com.obs.services.exception

## 类 ObsException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.obs.services.exception.ObsException

- 所有已实现的接口:
    Serializable

      public class ObsException
      extends RuntimeException

  This exception is thrown when the interface fails to be called or access to OBS fails.
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `ObsException(String message)`
    `ObsException(String message, String xmlMessage)`
    `ObsException(String message, String xmlMessage, Throwable cause)`
    `ObsException(String message, Throwable e)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getErrorCode()` Obtain the error code returned by the OBS server.
    `String` | `getErrorHostId()` Obtain the server ID.
    `String` | `getErrorIndicator()` Obtain the detailed error indicators returned by the OBS server.
    `String` | `getErrorMessage()` Obtain the error details returned by the OBS server.
    `String` | `getErrorRequestId()` Obtain the request ID returned by the OBS server.
    `int` | `getResponseCode()` Obtain the HTTP status code returned by the OBS server.
    `Map<String,String>` | `getResponseHeaders()` Obtain the response headers of the HTTP request returned by the OBS server.
    `String` | `getResponseStatus()` Obtain the HTTP response description returned by the OBS server.
    `String` | `getXmlMessage()`
    `void` | `setErrorCode(String errorCode)`
    `void` | `setErrorHostId(String errorHostId)`
    `void` | `setErrorIndicator(String errorIndicator)`
    `void` | `setErrorMessage(String errorMessage)`
    `void` | `setErrorRequestId(String errorRequestId)`
    `void` | `setResponseCode(int responseCode)`
    `void` | `setResponseHeaders(Map<String,String> responseHeaders)`
    `void` | `setResponseStatus(String responseStatus)`
    `void` | `setXmlMessage(String xmlMessage)`
    `String` | `toString()`

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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`

    - #### 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)

Copyright © 2021. All rights reserved.