public enum UncaughtExceptionsPolicy extends java.lang.Enum<UncaughtExceptionsPolicy>
UncaughtExceptionsPolicy defines what to do with the stack traces of exceptions that are thrown during
parallel tasks execution.| Enum Constant | Description |
|---|---|
HIDE |
Does nothing with the stack traces.
|
LOG_ON_SLF4J |
Log exceptions via SLF4J logging API.
|
PRINT_AND_LOG |
Does both
PRINT_ON_STDERR and LOG_ON_SLF4J. |
PRINT_ON_STDERR |
Print uncaught exceptions' stack traces to the standard error stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
shouldLogViaSlf4J() |
|
boolean |
shouldPrintOnStdErr() |
|
static UncaughtExceptionsPolicy |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static UncaughtExceptionsPolicy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UncaughtExceptionsPolicy HIDE
Warning: when using this policy, the caller of the HCRunner will not be aware of uncaught exceptions
thrown within the solver. This policy should only be used when the solver is guaranteed not to throw any
exception (for instance if it wraps everything in a try/catch block)
public static final UncaughtExceptionsPolicy PRINT_ON_STDERR
public static final UncaughtExceptionsPolicy LOG_ON_SLF4J
public static final UncaughtExceptionsPolicy PRINT_AND_LOG
PRINT_ON_STDERR and LOG_ON_SLF4J.public static UncaughtExceptionsPolicy[] values()
for (UncaughtExceptionsPolicy c : UncaughtExceptionsPolicy.values()) System.out.println(c);
public static UncaughtExceptionsPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean shouldPrintOnStdErr()
public boolean shouldLogViaSlf4J()