| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.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.
|
java.lang.String |
getTemplate()
Return the message (StringFormat) template for the error code.
|
static ErrorCode |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getTemplate()
public int getLogMask()
public java.lang.String format(java.lang.Object... args)
args - the parameters for the templatized message.Copyright © 2019 Apache Software Foundation. All Rights Reserved.