com.atlassian.util.concurrent
Enum ExceptionPolicy.Policies

java.lang.Object
  extended by java.lang.Enum<ExceptionPolicy.Policies>
      extended by com.atlassian.util.concurrent.ExceptionPolicy.Policies
All Implemented Interfaces:
ExceptionPolicy, java.io.Serializable, java.lang.Comparable<ExceptionPolicy.Policies>
Enclosing interface:
ExceptionPolicy

public static enum ExceptionPolicy.Policies
extends java.lang.Enum<ExceptionPolicy.Policies>
implements ExceptionPolicy

Default exception handling policies


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.util.concurrent.ExceptionPolicy
ExceptionPolicy.Policies
 
Enum Constant Summary
IGNORE_EXCEPTIONS
           
THROW
           
 
Method Summary
static ExceptionPolicy.Policies valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExceptionPolicy.Policies[] 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
 
Methods inherited from interface com.atlassian.util.concurrent.ExceptionPolicy
handler
 

Enum Constant Detail

IGNORE_EXCEPTIONS

public static final ExceptionPolicy.Policies IGNORE_EXCEPTIONS

THROW

public static final ExceptionPolicy.Policies THROW
Method Detail

values

public static ExceptionPolicy.Policies[] 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 (ExceptionPolicy.Policies c : ExceptionPolicy.Policies.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ExceptionPolicy.Policies 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 © 2011 Atlassian. All Rights Reserved.