@HashCodeAndEqualsPlugin.Enhance public static class Advice.ExceptionHandler.Simple extends java.lang.Object implements Advice.ExceptionHandler
Advice.ExceptionHandler.Default, Advice.ExceptionHandler.Simple
Modifier and Type | Field and Description |
---|---|
private StackManipulation |
stackManipulation
The stack manipulation to execute.
|
Constructor and Description |
---|
Simple(StackManipulation stackManipulation)
Creates a new simple exception handler.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
resolve(MethodDescription instrumentedMethod,
TypeDescription instrumentedType)
Resolves a stack manipulation to apply.
|
private final StackManipulation stackManipulation
public Simple(StackManipulation stackManipulation)
stackManipulation
- The stack manipulation to execute.public StackManipulation resolve(MethodDescription instrumentedMethod, TypeDescription instrumentedType)
resolve
in interface Advice.ExceptionHandler
instrumentedMethod
- The instrumented method.instrumentedType
- The instrumented type.