Class FilterNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.spring.cloud.feature.manager.FilterNotFoundException
-
- All Implemented Interfaces:
Serializable
public 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilterNotFoundException(String message, Throwable cause, FeatureFilterEvaluationContext filter)Creates a new instance of the FilterNotFoundException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-