public enum ErrorCategory extends Enum<ErrorCategory>
Enum Constant and Description |
---|
APPLICATION
Application-level issues related to implementation of certain functionality (such as detected
illegal states of a program or data inconsistency).
|
CONFIGURATION
Improper values set in the system configuration (negative numbers, missing or inconsistent
definitions, mismatch with valid values list etc).
|
SECURITY
Security constraint violations (failed login attempts, lack of permissions to perform operation
and so on).
|
SYSTEM
System-level problems caused by external factors, resources shortage and similar.
|
USER
Problems caused by attempt of a user to perform certain operations which contradict the system
rules.
|
VALIDATION
Problems related to violations of different rules set either by product metadata (catalog
definitions or similar) or other types of constraints.
|
Modifier and Type | Method and Description |
---|---|
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 SYSTEM
public static final ErrorCategory APPLICATION
public static final ErrorCategory VALIDATION
public static final ErrorCategory USER
public static final ErrorCategory CONFIGURATION
public static final ErrorCategory SECURITY
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 nullCopyright © 2017. All rights reserved.