com.aliyun.oss

## 类 OSSException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.aliyun.oss.ServiceException
        - - com.aliyun.oss.OSSException

- 所有已实现的接口:
    Serializable

      public class OSSException
      extends ServiceException

  The OSSException is thrown upon error when accessing OSS.
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `OSSException()`
    `OSSException(String errorMessage)`
    `OSSException(String errorMessage, String errorCode, String requestId, String hostId, String header, String resourceType, String method)`
    `OSSException(String errorMessage, String errorCode, String requestId, String hostId, String header, String resourceType, String method, String rawResponseError)`
    `OSSException(String errorMessage, String errorCode, String requestId, String hostId, String header, String resourceType, String method, String rawResponseError, Throwable cause)`
    `OSSException(String errorMessage, String errorCode, String requestId, String hostId, String header, String resourceType, String method, Throwable cause)`
    `OSSException(String errorMessage, Throwable cause)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getHeader()`
    `String` | `getMessage()`
    `String` | `getMethod()`
    `String` | `getResourceType()`

    - ### 从类继承的方法 com.aliyun.oss.ServiceException

      `getErrorCode, getErrorMessage, getHostId, getRawResponseError, getRequestId, setRawResponseError`

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

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

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

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

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

    - #### OSSException

          public OSSException()

    - #### OSSException

          public OSSException(String errorMessage)

    - #### OSSException

          public OSSException(String errorMessage,
                      Throwable cause)

    - #### OSSException

          public OSSException(String errorMessage,
                      String errorCode,
                      String requestId,
                      String hostId,
                      String header,
                      String resourceType,
                      String method)

    - #### OSSException

          public OSSException(String errorMessage,
                      String errorCode,
                      String requestId,
                      String hostId,
                      String header,
                      String resourceType,
                      String method,
                      Throwable cause)

    - #### OSSException

          public OSSException(String errorMessage,
                      String errorCode,
                      String requestId,
                      String hostId,
                      String header,
                      String resourceType,
                      String method,
                      String rawResponseError)

    - #### OSSException

          public OSSException(String errorMessage,
                      String errorCode,
                      String requestId,
                      String hostId,
                      String header,
                      String resourceType,
                      String method,
                      String rawResponseError,
                      Throwable cause)

  - ### 方法详细资料

    - #### getResourceType

          public String getResourceType()

    - #### getHeader

          public String getHeader()

    - #### getMethod

          public String getMethod()

    - #### getMessage

          public String getMessage()

      覆盖:
        `getMessage` 在类中 `ServiceException`

Copyright © 2020. All Rights Reserved.