public static enum GlideExecutor.UncaughtThrowableStrategy extends Enum<GlideExecutor.UncaughtThrowableStrategy>
Throwables thrown by futures run on the
pool.| Enum Constant and Description |
|---|
IGNORE
Silently catches and ignores the uncaught
Throwables. |
LOG
|
THROW
Rethrows the uncaught
Throwables to crash the app. |
| Modifier and Type | Field and Description |
|---|---|
static GlideExecutor.UncaughtThrowableStrategy |
DEFAULT
The default strategy, currently
LOG. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handle(Throwable t) |
static GlideExecutor.UncaughtThrowableStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlideExecutor.UncaughtThrowableStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlideExecutor.UncaughtThrowableStrategy IGNORE
Throwables.public static final GlideExecutor.UncaughtThrowableStrategy LOG
public static final GlideExecutor.UncaughtThrowableStrategy THROW
Throwables to crash the app.public static final GlideExecutor.UncaughtThrowableStrategy DEFAULT
LOG.public static GlideExecutor.UncaughtThrowableStrategy[] values()
for (GlideExecutor.UncaughtThrowableStrategy c : GlideExecutor.UncaughtThrowableStrategy.values()) System.out.println(c);
public static GlideExecutor.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)