类 DefaultBlockExceptionHandler

java.lang.Object
com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.DefaultBlockExceptionHandler
所有已实现的接口:
BlockExceptionHandler

public class DefaultBlockExceptionHandler extends Object implements BlockExceptionHandler
Default handler for the blocked request.
作者:
kaizi2009
  • 构造器详细资料

    • DefaultBlockExceptionHandler

      public DefaultBlockExceptionHandler()
  • 方法详细资料

    • handle

      public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.alibaba.csp.sentinel.slots.block.BlockException e) throws Exception
      从接口复制的说明: BlockExceptionHandler
      Handle the request when blocked.
      指定者:
      handle 在接口中 BlockExceptionHandler
      参数:
      request - Servlet request
      response - Servlet response
      e - the block exception
      抛出:
      Exception - users may throw out the BlockException or other error occurs