接口 BlockExceptionHandler
- 所有已知实现类:
DefaultBlockExceptionHandler
public interface BlockExceptionHandler
Handler for the blocked request.
- 作者:
- kaizi2009
-
方法概要
修饰符和类型方法说明voidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.alibaba.csp.sentinel.slots.block.BlockException e) Handle the request when blocked.
-
方法详细资料
-
handle
void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.alibaba.csp.sentinel.slots.block.BlockException e) throws Exception Handle the request when blocked.- 参数:
request- Servlet requestresponse- Servlet responsee- the block exception- 抛出:
Exception- users may throw out the BlockException or other error occurs
-