public enum ErrorCategory extends Enum<ErrorCategory>
Enum Constant and Description |
---|
SERVER_ERROR
Enum value serverError.
|
USER_ERROR
Enum value userError.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCategory |
fromString(String value)
Parses a serialized value to a ErrorCategory instance.
|
String |
toString() |
static ErrorCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCategory USER_ERROR
public static final ErrorCategory SERVER_ERROR
public static ErrorCategory[] values()
for (ErrorCategory c : ErrorCategory.values()) System.out.println(c);
public static ErrorCategory 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 static ErrorCategory fromString(String value)
value
- the serialized value to parse.public String toString()
toString
in class Enum<ErrorCategory>
Copyright © 2019. All rights reserved.