public enum StandardExceptionStrategy extends Enum<StandardExceptionStrategy> implements ExceptionHandler
ExceptionHandler.MethodInformation| Enum Constant and Description |
|---|
LOGING_AS_ERROR |
RETRY |
RETURN_EMPTY |
| Modifier and Type | Method and Description |
|---|---|
Object |
handle(ExceptionHandler.MethodInformation methodInformation,
Throwable exceptionOccured) |
static StandardExceptionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardExceptionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardExceptionStrategy LOGING_AS_ERROR
public static final StandardExceptionStrategy RETRY
public static final StandardExceptionStrategy RETURN_EMPTY
public static StandardExceptionStrategy[] values()
for (StandardExceptionStrategy c : StandardExceptionStrategy.values()) System.out.println(c);
public static StandardExceptionStrategy 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 Object handle(ExceptionHandler.MethodInformation methodInformation, Throwable exceptionOccured) throws Throwable
handle in interface ExceptionHandlerThrowableCopyright © 2015. All rights reserved.