接口 BlockExceptionHandler
- 所有已知实现类:
DefaultBlockExceptionHandler
public interface BlockExceptionHandler
Handler for the blocked request.
- 从以下版本开始:
- 1.8.8
-
方法概要
-
方法详细资料
-
handle
void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String resourceName, com.alibaba.csp.sentinel.slots.block.BlockException e) throws Exception Handle the request when blocked.- 参数:
request- Servlet requestresponse- Servlet responseresourceName- resource namee- the block exception- 抛出:
Exception- users may throw out the BlockException or other error occurs
-