org.ow2.weblab.service.gate
Enum WebLabExceptions
java.lang.Object
java.lang.Enum<WebLabExceptions>
org.ow2.weblab.service.gate.WebLabExceptions
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<WebLabExceptions>
public enum WebLabExceptions
- extends java.lang.Enum<WebLabExceptions>
A simple enumeration that enables (through the public field wle) to retrieve every known types of
WebLabException
- E0: Unexpected error
- E1: Invalid parameter
- E2: Insufficient resources
- E3: Content not available
- E4: Access denied
- E5: Unsupported request
- E6: Service not configured
- Author:
- ymombrun
- Date:
- 2010-08-13
|
Field Summary |
org.weblab_project.services.exception.WebLabException |
wle
The WebLabException that matches the enumeration instance name. |
|
Method Summary |
static WebLabExceptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static WebLabExceptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
E0
public static final WebLabExceptions E0
E1
public static final WebLabExceptions E1
E2
public static final WebLabExceptions E2
E3
public static final WebLabExceptions E3
E4
public static final WebLabExceptions E4
E5
public static final WebLabExceptions E5
E6
public static final WebLabExceptions E6
wle
public final org.weblab_project.services.exception.WebLabException wle
- The WebLabException that matches the enumeration instance name.
values
public static WebLabExceptions[] 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 (WebLabExceptions c : WebLabExceptions.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WebLabExceptions valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
Copyright © 2004-2011. All Rights Reserved.