org.apache.commons.transaction.resource
Enum ResourceException.Code
java.lang.Object
java.lang.Enum<ResourceException.Code>
org.apache.commons.transaction.resource.ResourceException.Code
- All Implemented Interfaces:
- Serializable, Comparable<ResourceException.Code>
- Enclosing class:
- ResourceException
public static enum ResourceException.Code
- extends Enum<ResourceException.Code>
COULD_NOT_CREATE
public static final ResourceException.Code COULD_NOT_CREATE
COULD_NOT_DELETE
public static final ResourceException.Code COULD_NOT_DELETE
CANT_MOVE_OR_COPY
public static final ResourceException.Code CANT_MOVE_OR_COPY
values
public static ResourceException.Code[] 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 (ResourceException.Code c : ResourceException.Code.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ResourceException.Code 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 © 2004-2007 The Apache Software Foundation. All Rights Reserved.