你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
FilterNotFoundException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. spring. cloud. feature. management. models. FilterNotFoundException
- com.
- java.
- java.
- java.
public final class FilterNotFoundException
extends RuntimeException
This class defines a custom exception type for when an expected Filter is not found when checking if a Feature is enabled. A FilterNotFoundException is only thrown when failfast is enabled, which is true by default.
Constructor Summary
Constructor | Description |
---|---|
FilterNotFoundException(String message, Throwable cause, FeatureFilterEvaluationContext filter) |
Creates a new instance of the Filter |
Method Summary
Modifier and Type | Method and Description |
---|---|
String | getMessage() |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
addSuppressed
fillInStackTrace
getCause
getLocalizedMessage
getMessage
getStackTrace
getSuppressed
initCause
printStackTrace
printStackTrace
printStackTrace
setStackTrace
toString
Constructor Details
FilterNotFoundException
public FilterNotFoundException(String message, Throwable cause, FeatureFilterEvaluationContext filter)
Creates a new instance of the FilterNotFoundException
Parameters:
message
- the error message.
cause
- the original error thrown, typically of NoSuchBeanDefinitionException type.
filter
- The filter context used to find the not found filter.
Method Details
getMessage
public String getMessage()
Overrides:
FilterNotFoundException.getMessage()