@Activate(group="provider") public class ExceptionFilter extends Object implements Filter, Filter.Listener
Functions:
Filter.Listener| Constructor and Description |
|---|
ExceptionFilter() |
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation)
Make sure call invoker.invoke() in your implementation.
|
void |
onError(Throwable e,
Invoker<?> invoker,
Invocation invocation) |
void |
onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
setLogger(Logger logger) |
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
Filterinvoke in interface FilterRpcExceptionpublic void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)
onResponse in interface Filter.Listenerpublic void onError(Throwable e, Invoker<?> invoker, Invocation invocation)
onError in interface Filter.Listenerpublic void setLogger(Logger logger)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.