Serializable
, Comparable<Validate.OnFailure>
public static enum Validate.OnFailure extends Enum<Validate.OnFailure>
Enum Constant | Description |
---|---|
ASSERT |
If JVM assertions are enabled, throw an
AssertionError . |
EXIT |
Exit the JVM, with a non-zero error code.
|
IGNORE |
Ignore validation failures.
|
THROW |
Throw an
IllegalArgumentException . |
Modifier and Type | Method | Description |
---|---|---|
static Validate.OnFailure |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Validate.OnFailure[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Validate.OnFailure THROW
IllegalArgumentException
.public static final Validate.OnFailure ASSERT
AssertionError
.public static final Validate.OnFailure EXIT
public static final Validate.OnFailure IGNORE
public static Validate.OnFailure[] values()
for (Validate.OnFailure c : Validate.OnFailure.values()) System.out.println(c);
public static Validate.OnFailure valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020. All rights reserved.