类 DefaultBlockExceptionHandler
java.lang.Object
com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.callback.DefaultBlockExceptionHandler
- 所有已实现的接口:
BlockExceptionHandler
Default handler for the blocked request.
- 从以下版本开始:
- 1.8.8
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
DefaultBlockExceptionHandler
public DefaultBlockExceptionHandler()
-
-
方法详细资料
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String resourceName, com.alibaba.csp.sentinel.slots.block.BlockException ex) throws Exception 从接口复制的说明:BlockExceptionHandlerHandle the request when blocked.- 指定者:
handle在接口中BlockExceptionHandler- 参数:
request- Servlet requestresponse- Servlet responseresourceName- resource nameex- the block exception- 抛出:
Exception- users may throw out the BlockException or other error occurs
-