com.aliyun.oss.common.utils

## 类 ExceptionFactory

- java.lang.Object
- - com.aliyun.oss.common.utils.ExceptionFactory

-     public class ExceptionFactory
      extends Object

  A simple factory used for creating instances of `ClientException` and `OSSException`.

- - ### 构造器概要

    构造器
    构造器和说明
    `ExceptionFactory()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `static OSSException` | `createInvalidResponseException(String requestId, String message)`
    `static OSSException` | `createInvalidResponseException(String requestId, String message, String rawResponseError)`
    `static OSSException` | `createInvalidResponseException(String requestId, String rawResponseError, Throwable cause)`
    `static OSSException` | `createInvalidResponseException(String requestId, Throwable cause)`
    `static ClientException` | `createNetworkException(IOException ex)`
    `static OSSException` | `createOSSException(com.aliyun.oss.internal.model.OSSErrorResult errorResult)`
    `static OSSException` | `createOSSException(com.aliyun.oss.internal.model.OSSErrorResult errorResult, String rawResponseError)`
    `static OSSException` | `createOSSException(String requestId, String errorCode, String message)`
    `static OSSException` | `createOSSException(String requestId, String errorCode, String message, String rawResponseError)`
    `static OSSException` | `createUnknownOSSException(String requestId, int statusCode)`

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

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

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

    - #### ExceptionFactory

          public ExceptionFactory()

  - ### 方法详细资料

    - #### createNetworkException

          public static ClientException createNetworkException(IOException ex)

    - #### createInvalidResponseException

          public static OSSException createInvalidResponseException(String requestId,
                                                    Throwable cause)

    - #### createInvalidResponseException

          public static OSSException createInvalidResponseException(String requestId,
                                                    String rawResponseError,
                                                    Throwable cause)

    - #### createInvalidResponseException

          public static OSSException createInvalidResponseException(String requestId,
                                                    String message)

    - #### createInvalidResponseException

          public static OSSException createInvalidResponseException(String requestId,
                                                    String message,
                                                    String rawResponseError)

    - #### createOSSException

          public static OSSException createOSSException(com.aliyun.oss.internal.model.OSSErrorResult errorResult)

    - #### createOSSException

          public static OSSException createOSSException(com.aliyun.oss.internal.model.OSSErrorResult errorResult,
                                        String rawResponseError)

    - #### createOSSException

          public static OSSException createOSSException(String requestId,
                                        String errorCode,
                                        String message)

    - #### createOSSException

          public static OSSException createOSSException(String requestId,
                                        String errorCode,
                                        String message,
                                        String rawResponseError)

    - #### createUnknownOSSException

          public static OSSException createUnknownOSSException(String requestId,
                                               int statusCode)

Copyright © 2020. All Rights Reserved.