public class ExceptionWrapperHandler<T> extends Object implements InvocationHandler
| Constructor and Description |
|---|
ExceptionWrapperHandler(T delegate,
Class<? extends RuntimeException> exceptionType) |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static <T> T |
newProxy(ClassLoader loader,
T delegate,
Class<? extends RuntimeException> exceptionType,
Class<T> apis) |
public ExceptionWrapperHandler(T delegate, Class<? extends RuntimeException> exceptionType)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic static <T> T newProxy(ClassLoader loader, T delegate, Class<? extends RuntimeException> exceptionType, Class<T> apis)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.