Package net.bytebuddy.asm
Enum Class Advice.ExceptionHandler.Default
- All Implemented Interfaces:
Serializable
,Comparable<Advice.ExceptionHandler.Default>
,Constable
,Advice.ExceptionHandler
- Enclosing interface:
Advice.ExceptionHandler
public static enum Advice.ExceptionHandler.Default
extends Enum<Advice.ExceptionHandler.Default>
implements Advice.ExceptionHandler
Default implementations for commonly used exception handlers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.ExceptionHandler
Advice.ExceptionHandler.Default, Advice.ExceptionHandler.Simple
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn exception handler that invokesThrowable.printStackTrace()
.An exception handler that rethrows any suppressedThrowable
.An exception handler the suppresses the exception. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static Advice.ExceptionHandler.Default[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.asm.Advice.ExceptionHandler
resolve
-
Enum Constant Details
-
SUPPRESSING
An exception handler the suppresses the exception. -
PRINTING
An exception handler that invokesThrowable.printStackTrace()
. -
RETHROWING
An exception handler that rethrows any suppressedThrowable
. 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.
-
-
Constructor Details
-
Default
private Default()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-