类 BlockException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.alibaba.csp.sentinel.slots.block.BlockException
所有已实现的接口:
Serializable
直接已知子类:
AuthorityException, DegradeException, FlowException, SystemBlockException

public abstract class BlockException extends Exception
Abstract exception indicating blocked by Sentinel due to flow control, circuit breaking or system protection triggered.
作者:
youji.zj
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • BlockException

      public BlockException(String ruleLimitApp)
    • BlockException

      public BlockException(String ruleLimitApp, AbstractRule rule)
    • BlockException

      public BlockException(String message, Throwable cause)
    • BlockException

      public BlockException(String ruleLimitApp, String message)
    • BlockException

      public BlockException(String ruleLimitApp, String message, AbstractRule rule)
  • 方法详细资料

    • fillInStackTrace

      public Throwable fillInStackTrace()
      覆盖:
      fillInStackTrace 在类中 Throwable
    • getRuleLimitApp

      public String getRuleLimitApp()
    • setRuleLimitApp

      public void setRuleLimitApp(String ruleLimitApp)
    • toRuntimeException

      public RuntimeException toRuntimeException()
    • isBlockException

      public static boolean isBlockException(Throwable t)
      Check whether the exception is sentinel blocked exception. One exception is sentinel blocked exception only when:
      参数:
      t - the exception.
      返回:
      return true if the exception marks sentinel blocked exception.
    • getRule

      public AbstractRule getRule()