public static enum OSSException.ExceptionType extends java.lang.Enum<OSSException.ExceptionType>
Enum Constant and Description |
---|
LOCAL_EXCEPTION
连接过程中发生的异常
|
OSS_EXCEPTION
能和OSS建立连接,但是OSS无法正常处理该请求,返回错误信息
|
Modifier and Type | Method and Description |
---|---|
static OSSException.ExceptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OSSException.ExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSSException.ExceptionType LOCAL_EXCEPTION
public static final OSSException.ExceptionType OSS_EXCEPTION
public static OSSException.ExceptionType[] values()
for (OSSException.ExceptionType c : OSSException.ExceptionType.values()) System.out.println(c);
public static OSSException.ExceptionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null