public static enum ServiceRegisterException.RegisterErrorType extends java.lang.Enum<ServiceRegisterException.RegisterErrorType>
枚举常量和说明 |
---|
ILLEGAL
服务地址写得不合法,不符合规范;
|
UNAVAILABLE
服务不可用,如返回响应码为404,或302,401的服务;
|
限定符和类型 | 方法和说明 |
---|---|
static ServiceRegisterException.RegisterErrorType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ServiceRegisterException.RegisterErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
|
public static final ServiceRegisterException.RegisterErrorType UNAVAILABLE
public static final ServiceRegisterException.RegisterErrorType ILLEGAL
public static ServiceRegisterException.RegisterErrorType[] values()
for (ServiceRegisterException.RegisterErrorType c : ServiceRegisterException.RegisterErrorType.values()) System.out.println(c);
public static ServiceRegisterException.RegisterErrorType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。