接口 BlockExceptionHandler

所有已知实现类:
DefaultBlockExceptionHandler

public interface BlockExceptionHandler
Handler for the blocked request.
作者:
kaizi2009
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    handle(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 request
      response - Servlet response
      e - the block exception
      抛出:
      Exception - users may throw out the BlockException or other error occurs