Enum Class CachedIndependenceQueries.ErrorPolicy

java.lang.Object
java.lang.Enum<CachedIndependenceQueries.ErrorPolicy>
edu.cmu.tetrad.search.test.CachedIndependenceQueries.ErrorPolicy
All Implemented Interfaces:
Serializable, Comparable<CachedIndependenceQueries.ErrorPolicy>, Constable
Enclosing class:
CachedIndependenceQueries

public static enum CachedIndependenceQueries.ErrorPolicy extends Enum<CachedIndependenceQueries.ErrorPolicy>
ErrorPolicy represents the policies that can be applied to handle errors encountered during the execution of a process or task. This enum defines various strategies, allowing for flexible management of errors based on specific requirements.

- TREAT_AS_INDEPENDENT: Indicates that the error is considered independent and does not affect other operations or processes. - TREAT_AS_DEPENDENT: Indicates that the error has dependencies and may affect other operations or processes. - RETHROW: Indicates that the error should be rethrown to the calling context for further handling or propagation.

  • Enum Constant Details

    • TREAT_AS_INDEPENDENT

      public static final CachedIndependenceQueries.ErrorPolicy TREAT_AS_INDEPENDENT
      Indicates that the error is considered independent and does not affect other operations or processes. This policy can be used to treat errors in isolation, ensuring that they do not interfere with the execution of unrelated tasks.
    • TREAT_AS_DEPENDENT

      public static final CachedIndependenceQueries.ErrorPolicy TREAT_AS_DEPENDENT
      Indicates that the error has dependencies and may affect other operations or processes. This policy is applied in scenarios where an error is not isolated and could influence the execution of related tasks or workflows.
    • RETHROW

      public static final CachedIndependenceQueries.ErrorPolicy RETHROW
      Indicates that the error should be rethrown to the calling context for further handling or propagation. This policy is applied when the error cannot be handled within the current context and needs to be escalated.
  • Method Details

    • values

      public static CachedIndependenceQueries.ErrorPolicy[] 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 CachedIndependenceQueries.ErrorPolicy 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