@ErrorCodeCatalog(value="CUSTOM") public enum ErrorEnum extends Enum<ErrorEnum> implements ErrorExtEnum
Modifier and Type | Method and Description |
---|---|
String |
getErrDesc()
Gets error description.
|
String |
getErrorCode()
Gets name of this enum.
|
static ErrorEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ErrorEnum[] values()
for (ErrorEnum c : ErrorEnum.values()) System.out.println(c);
public static ErrorEnum 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.