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 Classes Modifier and Type Interface Description static class
Advice.ExceptionHandler.Default
Default implementations for commonly used exception handlers.static class
Advice.ExceptionHandler.Simple
A simple exception handler that returns a fixed stack manipulation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulation
resolve(MethodDescription instrumentedMethod, TypeDescription instrumentedType)
Resolves a stack manipulation to apply.
-
-
-
Method Detail
-
resolve
StackManipulation resolve(MethodDescription instrumentedMethod, TypeDescription instrumentedType)
Resolves a stack manipulation to apply.- Parameters:
instrumentedMethod
- The instrumented method.instrumentedType
- The instrumented type.- Returns:
- The stack manipulation to use.
-
-