public enum ErrorCode extends Enum<ErrorCode>
Modifier and Type | Method and Description |
---|---|
String |
format(Object... args)
Return a templatized error message for the error code.
|
int |
getLogMask()
Return the log mask (to which log the exception should be logged) of the error.
|
String |
getTemplate()
Return the message (StringFormat) template for the error code.
|
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 getTemplate()
public int getLogMask()
Copyright © 2018 Apache Software Foundation. All rights reserved.