public enum ErrorHandlingStrategy extends Enum<ErrorHandlingStrategy>
Enum Constant and Description |
---|
PROPAGATE |
THROWS_EXCEPTION |
Modifier and Type | Method and Description |
---|---|
static ErrorHandlingStrategy |
fromName(String name)
Gets the strategy from given name representation.
|
String |
getName()
Gets the name representation.
|
static ErrorHandlingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorHandlingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorHandlingStrategy THROWS_EXCEPTION
public static final ErrorHandlingStrategy PROPAGATE
public static ErrorHandlingStrategy[] values()
for (ErrorHandlingStrategy c : ErrorHandlingStrategy.values()) System.out.println(c);
public static ErrorHandlingStrategy 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 nullpublic static ErrorHandlingStrategy fromName(String name)
name
- public String getName()
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.