public static enum Advice.ExceptionHandler.Default extends Enum<Advice.ExceptionHandler.Default> implements Advice.ExceptionHandler
Advice.ExceptionHandler.Default, Advice.ExceptionHandler.Simple
Enum Constant and Description |
---|
PRINTING
An exception handler that invokes
Throwable.printStackTrace() . |
RETHROWING
An exception handler that rethrows any suppressed
Throwable . |
SUPPRESSING
An exception handler the suppresses the exception.
|
Modifier and Type | Method and Description |
---|---|
static Advice.ExceptionHandler.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.ExceptionHandler.Default[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
resolve
public static final Advice.ExceptionHandler.Default SUPPRESSING
public static final Advice.ExceptionHandler.Default PRINTING
Throwable.printStackTrace()
.public static final Advice.ExceptionHandler.Default RETHROWING
Throwable
. Normally, it is preferable to avoid suppression
altogether rather then to rethrow them. It can however be desired to make this behavior configurable where using this
handler allows to effectively disable the suppression.public static Advice.ExceptionHandler.Default[] values()
for (Advice.ExceptionHandler.Default c : Advice.ExceptionHandler.Default.values()) System.out.println(c);
public static Advice.ExceptionHandler.Default 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 nullCopyright © 2014–2024. All rights reserved.