Udostępnij przez


FeatureManagementException Class

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • com.azure.spring.cloud.feature.management.models.FeatureManagementException

public final class FeatureManagementException
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
FeatureManagementException(String message)

Creates a new instance of the FilterNotFoundException

FeatureManagementException(String message, Throwable cause)

Creates a new instance of the FilterNotFoundException

Method Summary

Modifier and Type Method and Description
String getMessage()

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

FeatureManagementException

public FeatureManagementException(String message)

Creates a new instance of the FilterNotFoundException

Parameters:

message - the error message.

FeatureManagementException

public FeatureManagementException(String message, Throwable cause)

Creates a new instance of the FilterNotFoundException

Parameters:

message - the error message.
cause - the original error thrown, typically of NoSuchBeanDefinitionException type.

Method Details

getMessage

public String getMessage()

Overrides:

FeatureManagementException.getMessage()

Applies to