public static enum FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy extends Enum<FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy>
| Enum Constant and Description |
|---|
IGNORE
Silently catches and ignores the uncaught throwables.
|
LOG
Logs the uncaught throwables using
FifoPriorityThreadPoolExecutor.TAG and Log. |
THROW
Rethrows the uncaught throwables to crash the app.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handle(Throwable t) |
static FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy IGNORE
public static final FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy LOG
FifoPriorityThreadPoolExecutor.TAG and Log.public static final FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy THROW
public static FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy[] values()
for (FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy c : FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy.values()) System.out.println(c);
public static FifoPriorityThreadPoolExecutor.UncaughtThrowableStrategy 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 nullprotected void handle(Throwable t)