类 ExceptionFilter
- java.lang.Object
-
- com.alibaba.dubbo.rpc.filter.ExceptionFilter
-
- 所有已实现的接口:
Filter
@Activate(group="provider") public class ExceptionFilter extends Object implements Filter
ExceptionInvokerFilterFunctions:
- unexpected exception will be logged in ERROR level on provider side. Unexpected exception are unchecked exception not declared on the interface
- Wrap the exception not introduced in API package into RuntimeException. Framework will serialize the outer exception but stringnize its cause in order to avoid of possible serialization problem on client side
-
-
构造器详细资料
-
ExceptionFilter
public ExceptionFilter()
-
ExceptionFilter
public ExceptionFilter(Logger logger)
-
-
方法详细资料
-
invoke
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
从接口复制的说明:Filter
do invoke filter.// before filter Result result = invoker.invoke(invocation); // after filter return result;
- 指定者:
invoke
在接口中Filter
- 参数:
invoker
- serviceinvocation
- invocation.- 返回:
- invoke result.
- 抛出:
RpcException
- 另请参阅:
Invoker.invoke(Invocation)
-
-