Enum SecurityErrorCode
- java.lang.Object
-
- java.lang.Enum<SecurityErrorCode>
-
- org.seedstack.seed.security.internal.SecurityErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<SecurityErrorCode>,org.seedstack.shed.exception.ErrorCode
public enum SecurityErrorCode extends Enum<SecurityErrorCode> implements org.seedstack.shed.exception.ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DUPLICATE_SCOPE_NAMEMISSING_ADEQUATE_SCOPE_CONSTRUCTORMULTIPLE_MAIN_SECURITY_MODULESUNABLE_TO_CREATE_SCOPEUNEXPECTED_ERROR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static SecurityErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DUPLICATE_SCOPE_NAME
public static final SecurityErrorCode DUPLICATE_SCOPE_NAME
-
MISSING_ADEQUATE_SCOPE_CONSTRUCTOR
public static final SecurityErrorCode MISSING_ADEQUATE_SCOPE_CONSTRUCTOR
-
MULTIPLE_MAIN_SECURITY_MODULES
public static final SecurityErrorCode MULTIPLE_MAIN_SECURITY_MODULES
-
UNABLE_TO_CREATE_SCOPE
public static final SecurityErrorCode UNABLE_TO_CREATE_SCOPE
-
UNEXPECTED_ERROR
public static final SecurityErrorCode UNEXPECTED_ERROR
-
-
Method Detail
-
values
public static SecurityErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SecurityErrorCode c : SecurityErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-