public enum BaiduDwzErrorType extends Enum<BaiduDwzErrorType>
| Enum Constant and Description |
|---|
EXCESSIVE_LONG_URL |
HAS_SAFETY_RISKS |
INVALID_DOMAIN |
INVALID_LONG_URL
枚举
|
INVALID_TERM_OF_VALIDITY |
INVALID_TOKEN |
LONG_TERM_LIMIT |
NEED_ENTERPRISE_AUTH |
NO_POINTS |
PART_LONG_URL_ERROR |
UN_SUPPORTED |
| Modifier and Type | Method and Description |
|---|---|
static BaiduDwzErrorType |
getByCode(Integer code)
根据code获取枚举
|
int |
getCode() |
String |
getDesc() |
static BaiduDwzErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaiduDwzErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaiduDwzErrorType INVALID_LONG_URL
public static final BaiduDwzErrorType UN_SUPPORTED
public static final BaiduDwzErrorType HAS_SAFETY_RISKS
public static final BaiduDwzErrorType EXCESSIVE_LONG_URL
public static final BaiduDwzErrorType INVALID_TERM_OF_VALIDITY
public static final BaiduDwzErrorType LONG_TERM_LIMIT
public static final BaiduDwzErrorType NO_POINTS
public static final BaiduDwzErrorType INVALID_DOMAIN
public static final BaiduDwzErrorType PART_LONG_URL_ERROR
public static final BaiduDwzErrorType INVALID_TOKEN
public static final BaiduDwzErrorType NEED_ENTERPRISE_AUTH
public static BaiduDwzErrorType[] values()
for (BaiduDwzErrorType c : BaiduDwzErrorType.values()) System.out.println(c);
public static BaiduDwzErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public String getDesc()
@Nullable public static BaiduDwzErrorType getByCode(Integer code)
code - 错误代码Copyright © 2021–2023 EasyJ开源社区. All rights reserved.