类 BlockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.alibaba.csp.sentinel.slots.block.BlockException
- 所有已实现的接口:
Serializable
Abstract exception indicating blocked by Sentinel due to flow control,
circuit breaking or system protection triggered.
- 作者:
- youji.zj
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final Stringstatic final Stringprotected AbstractRulestatic StackTraceElement[]static RuntimeExceptionthis constant RuntimeException has no stack trace, just has a messageBLOCK_EXCEPTION_FLAGthat marks its name. -
构造器概要
构造器构造器说明BlockException(String ruleLimitApp) BlockException(String ruleLimitApp, AbstractRule rule) BlockException(String ruleLimitApp, String message) BlockException(String ruleLimitApp, String message, AbstractRule rule) BlockException(String message, Throwable cause) -
方法概要
修饰符和类型方法说明getRule()static booleanCheck whether the exception is sentinel blocked exception.voidsetRuleLimitApp(String ruleLimitApp) 从类继承的方法 java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
字段详细资料
-
BLOCK_EXCEPTION_FLAG
- 另请参阅:
-
BLOCK_EXCEPTION_MSG_PREFIX
- 另请参阅:
-
THROW_OUT_EXCEPTION
this constant RuntimeException has no stack trace, just has a message
BLOCK_EXCEPTION_FLAGthat marks its name.Use
isBlockException(Throwable)to check whether one Exception Sentinel Blocked Exception. -
sentinelStackTrace
-
rule
-
-
构造器详细资料
-
BlockException
-
BlockException
-
BlockException
-
BlockException
-
BlockException
-
-
方法详细资料
-
fillInStackTrace
- 覆盖:
fillInStackTrace在类中Throwable
-
getRuleLimitApp
-
setRuleLimitApp
-
toRuntimeException
-
isBlockException
Check whether the exception is sentinel blocked exception. One exception is sentinel blocked exception only when:- the exception or its (sub-)cause is
BlockException, or - the exception's message or any of its sub-cause's message is prefixed by
BLOCK_EXCEPTION_FLAG
- 参数:
t- the exception.- 返回:
- return true if the exception marks sentinel blocked exception.
- the exception or its (sub-)cause is
-
getRule
-