public class ExceptionFactory extends Object
ClientException
and OSSException.| Constructor and Description |
|---|
ExceptionFactory() |
public static ClientException createNetworkException(IOException ex)
public static OSSException createInvalidResponseException(String requestId, Throwable cause)
public static OSSException createInvalidResponseException(String requestId, String rawResponseError, Throwable cause)
public static OSSException createInvalidResponseException(String requestId, String message)
public static OSSException createInvalidResponseException(String requestId, String message, String rawResponseError)
public static OSSException createOSSException(com.aliyun.oss.internal.model.OSSErrorResult errorResult)
public static OSSException createOSSException(com.aliyun.oss.internal.model.OSSErrorResult errorResult, String rawResponseError)
public static OSSException createOSSException(String requestId, String errorCode, String message)
public static OSSException createOSSException(String requestId, String errorCode, String message, String rawResponseError)
public static OSSException createUnknownOSSException(String requestId, int statusCode)
Copyright © 2023. All Rights Reserved.