Enum ChannelException.Type
- java.lang.Object
-
- java.lang.Enum<ChannelException.Type>
-
- org.hippoecm.hst.configuration.channel.ChannelException.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ChannelException.Type>
- Enclosing class:
- ChannelException
public static enum ChannelException.Type extends Enum<ChannelException.Type>
Type of a channel exception. Each type contains an key that can be used as (part of) a resource bundle key.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANNOT_CREATE_CONTENT
CHANNEL_LOCKED
CHANNEL_NOT_FOUND
CHANNEL_OUT_OF_SYNC
MOUNT_EXISTS
MOUNT_NOT_FOUND
SERVER_ERROR
STOPPED_BY_LISTENER
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
static ChannelException.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChannelException.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final ChannelException.Type UNKNOWN
-
CHANNEL_LOCKED
public static final ChannelException.Type CHANNEL_LOCKED
-
CHANNEL_NOT_FOUND
public static final ChannelException.Type CHANNEL_NOT_FOUND
-
CHANNEL_OUT_OF_SYNC
public static final ChannelException.Type CHANNEL_OUT_OF_SYNC
-
SERVER_ERROR
public static final ChannelException.Type SERVER_ERROR
-
MOUNT_EXISTS
public static final ChannelException.Type MOUNT_EXISTS
-
MOUNT_NOT_FOUND
public static final ChannelException.Type MOUNT_NOT_FOUND
-
CANNOT_CREATE_CONTENT
public static final ChannelException.Type CANNOT_CREATE_CONTENT
-
STOPPED_BY_LISTENER
public static final ChannelException.Type STOPPED_BY_LISTENER
-
-
Method Detail
-
values
public static ChannelException.Type[] 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 (ChannelException.Type c : ChannelException.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChannelException.Type 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
-
getKey
public String getKey()
- Returns:
- a key unique for this error.
-
-