public enum ThrowingErrorHandler extends Enum<ThrowingErrorHandler> implements ErrorHandler
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(Exception error,
String errorMessage,
Runnable retryFunction) |
static ThrowingErrorHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThrowingErrorHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThrowingErrorHandler INSTANCE
public static ThrowingErrorHandler[] values()
for (ThrowingErrorHandler c : ThrowingErrorHandler.values()) System.out.println(c);
public static ThrowingErrorHandler 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 void handleError(Exception error, String errorMessage, Runnable retryFunction) throws Exception
handleError in interface ErrorHandlerExceptionCopyright © 2019 Flux Capacitor. All rights reserved.