public class ExceptionFactory extends Object
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) |
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 © 2019. All Rights Reserved.