public enum ErrorTestEnum extends Enum<ErrorTestEnum> implements ErrorExtEnum
Modifier and Type | Method and Description |
---|---|
String |
getErrDesc()
Gets error description.
|
String |
getErrorCode()
Gets name of this enum.
|
static ErrorTestEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorTestEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorTestEnum E200
public static final ErrorTestEnum E300
public static ErrorTestEnum[] values()
for (ErrorTestEnum c : ErrorTestEnum.values()) System.out.println(c);
public static ErrorTestEnum 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 String getErrorCode()
ErrorExtEnum
getErrorCode
in interface ErrorExtEnum
public String getErrDesc()
ErrorExtEnum
getErrDesc
in interface ErrorExtEnum
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.