public enum ExceptionHandlingStrategy extends Enum<ExceptionHandlingStrategy>
Enum Constant and Description |
---|
Catch
If an exception occurs, catch the exception and return a "null" value
|
Throw
If an exception occurs, rethrow the exception
|
Modifier and Type | Method and Description |
---|---|
static ExceptionHandlingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExceptionHandlingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExceptionHandlingStrategy Throw
public static final ExceptionHandlingStrategy Catch
public static ExceptionHandlingStrategy[] values()
for (ExceptionHandlingStrategy c : ExceptionHandlingStrategy.values()) System.out.println(c);
public static ExceptionHandlingStrategy 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 © 2016–2025. All rights reserved.