Package com.tonic.analysis.verifier
Enum VerifierConfig.ErrorMode
- java.lang.Object
-
- java.lang.Enum<VerifierConfig.ErrorMode>
-
- com.tonic.analysis.verifier.VerifierConfig.ErrorMode
-
- All Implemented Interfaces:
Serializable,Comparable<VerifierConfig.ErrorMode>
- Enclosing class:
- VerifierConfig
public static enum VerifierConfig.ErrorMode extends Enum<VerifierConfig.ErrorMode>
How the verifier reacts to errors: stop at the first or collect up to the cap.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECT_ALLKeep verifying after an error, gathering findings until the configured cap is reached.FAIL_FASTAbandon verification at the first error, reporting only that one.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VerifierConfig.ErrorModevalueOf(String name)Returns the enum constant of this type with the specified name.static VerifierConfig.ErrorMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL_FAST
public static final VerifierConfig.ErrorMode FAIL_FAST
Abandon verification at the first error, reporting only that one.
-
COLLECT_ALL
public static final VerifierConfig.ErrorMode COLLECT_ALL
Keep verifying after an error, gathering findings until the configured cap is reached.
-
-
Method Detail
-
values
public static VerifierConfig.ErrorMode[] 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 (VerifierConfig.ErrorMode c : VerifierConfig.ErrorMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VerifierConfig.ErrorMode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-