Enum DynamicInformationException.ExceptionType
- java.lang.Object
-
- java.lang.Enum<DynamicInformationException.ExceptionType>
-
- org.ametys.plugins.linkdirectory.dynamic.DynamicInformationException.ExceptionType
-
- All Implemented Interfaces:
Serializable
,Comparable<DynamicInformationException.ExceptionType>
- Enclosing class:
- DynamicInformationException
public static enum DynamicInformationException.ExceptionType extends Enum<DynamicInformationException.ExceptionType>
Enum for type of exception
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION_EXCEPTION
Configuration exception (unknown host, host unreachable, 404, ...)TIMEOUT
Connection timed outUNAUTHORIZED
The connection is not authorizedUNKNOWN
Nothing defined
-
Constructor Summary
Constructors Modifier Constructor Description private
ExceptionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynamicInformationException.ExceptionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DynamicInformationException.ExceptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNAUTHORIZED
public static final DynamicInformationException.ExceptionType UNAUTHORIZED
The connection is not authorized
-
TIMEOUT
public static final DynamicInformationException.ExceptionType TIMEOUT
Connection timed out
-
CONFIGURATION_EXCEPTION
public static final DynamicInformationException.ExceptionType CONFIGURATION_EXCEPTION
Configuration exception (unknown host, host unreachable, 404, ...)
-
UNKNOWN
public static final DynamicInformationException.ExceptionType UNKNOWN
Nothing defined
-
-
Constructor Detail
-
ExceptionType
private ExceptionType()
-
-
Method Detail
-
values
public static DynamicInformationException.ExceptionType[] 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 (DynamicInformationException.ExceptionType c : DynamicInformationException.ExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicInformationException.ExceptionType 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
-
-