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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the error should be rethrown to the calling context for further handling or propagation.Indicates that the error has dependencies and may affect other operations or processes.Indicates that the error is considered independent and does not affect other operations or processes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-