Package net.bytebuddy.asm
Interface Advice.ExceptionHandler
- All Known Implementing Classes:
Advice.ExceptionHandler.Default
,Advice.ExceptionHandler.Simple
- Enclosing class:
- Advice
public static interface Advice.ExceptionHandler
An exception handler is responsible for providing byte code for handling an exception thrown from a suppressing advice method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Default implementations for commonly used exception handlers.static class
A simple exception handler that returns a fixed stack manipulation. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(MethodDescription instrumentedMethod, TypeDescription instrumentedType) Resolves a stack manipulation to apply.
-
Method Details
-
resolve
Resolves a stack manipulation to apply.- Parameters:
instrumentedMethod
- The instrumented method.instrumentedType
- The instrumented type.- Returns:
- The stack manipulation to use.
-