org.glassfish.hk2.api
Enum ErrorType
java.lang.Object
java.lang.Enum<ErrorType>
org.glassfish.hk2.api.ErrorType
- All Implemented Interfaces:
- Serializable, Comparable<ErrorType>
public enum ErrorType
- extends Enum<ErrorType>
This enumeration describes the types of errors that might
occur
- Author:
- jwells
Enum Constant Summary |
FAILURE_TO_REIFY
This method is called if an ActiveDescriptor fails to reify properly during a lookup operation. |
Method Summary |
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
FAILURE_TO_REIFY
public static final ErrorType FAILURE_TO_REIFY
- This method is called if an ActiveDescriptor fails to reify properly during a lookup operation.
To the caller of the lookup operation it will appear as though the passed descriptor does not
exist. The descriptor will not be automatically removed from the system.
values
public static ErrorType[] 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 (ErrorType c : ErrorType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ErrorType 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 name
NullPointerException
- if the argument is null
Copyright © 2013 Oracle Corporation. All Rights Reserved.