Package net.bytebuddy.asm
Class Advice.Dispatcher.SuppressionHandler.Suppressing
java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler.Suppressing
- All Implemented Interfaces:
Advice.Dispatcher.SuppressionHandler
- Enclosing interface:
- Advice.Dispatcher.SuppressionHandler
@Enhance
public static class Advice.Dispatcher.SuppressionHandler.Suppressing
extends Object
implements Advice.Dispatcher.SuppressionHandler
A suppression handler that suppresses a given throwable type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
An active, bound suppression handler.Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.SuppressionHandler
Advice.Dispatcher.SuppressionHandler.NoOp, Advice.Dispatcher.SuppressionHandler.Suppressing
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Suppressing
(TypeDescription suppressedType) Creates a new suppressing suppression handler. -
Method Summary
Modifier and TypeMethodDescriptionbind
(StackManipulation exceptionHandler) Binds the suppression handler for instrumenting a specific method.protected static Advice.Dispatcher.SuppressionHandler
of
(TypeDescription suppressedType) Resolves an appropriate suppression handler.
-
Field Details
-
suppressedType
The suppressed throwable type.
-
-
Constructor Details
-
Suppressing
Creates a new suppressing suppression handler.- Parameters:
suppressedType
- The suppressed throwable type.
-
-
Method Details
-
of
Resolves an appropriate suppression handler.- Parameters:
suppressedType
- The suppressed type orAdvice.NoExceptionHandler
if no type should be suppressed.- Returns:
- An appropriate suppression handler.
-
bind
Binds the suppression handler for instrumenting a specific method.- Specified by:
bind
in interfaceAdvice.Dispatcher.SuppressionHandler
- Parameters:
exceptionHandler
- The stack manipulation to apply within a suppression handler.- Returns:
- A bound version of the suppression handler.
-