Enum Class IOFailureFlow

java.lang.Object
java.lang.Enum<IOFailureFlow>
org.exoplatform.commons.utils.IOFailureFlow
All Implemented Interfaces:
Serializable, Comparable<IOFailureFlow>, Constable

public enum IOFailureFlow extends Enum<IOFailureFlow>
Enumerates the behavior that a joinpoint can have uppon an i/o exception instead of just letting the exception happen.
Version:
$Revision$
Author:
Julien Viet
  • Enum Constant Details

    • RETHROW

      public static final IOFailureFlow RETHROW
      Rethrows the exception.
    • IGNORE

      public static final IOFailureFlow IGNORE
      Ignores the exception.
    • THROW_UNDECLARED

      public static final IOFailureFlow THROW_UNDECLARED
      Wraps and rethrows the exception with an instance of UndeclaredIOException.
  • Method Details

    • values

      public static IOFailureFlow[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IOFailureFlow valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null