org.ow2.weblab.service.gate
Enum WebLabExceptions

java.lang.Object
  extended by java.lang.Enum<WebLabExceptions>
      extended by 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

  1. E0: Unexpected error
  2. E1: Invalid parameter
  3. E2: Insufficient resources
  4. E3: Content not available
  5. E4: Access denied
  6. E5: Unsupported request
  7. E6: Service not configured

Author:
ymombrun
Date:
2010-08-13

Enum Constant Summary
E0
           
E1
           
E2
           
E3
           
E4
           
E5
           
E6
           
 
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
 

Enum Constant Detail

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
Field Detail

wle

public final org.weblab_project.services.exception.WebLabException wle
The WebLabException that matches the enumeration instance name.

Method Detail

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-2010. All Rights Reserved.