Class AIComponentsExperimentalFeatureException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.flow.component.ai.AIComponentsExperimentalFeatureException
All Implemented Interfaces:
Serializable

public class AIComponentsExperimentalFeatureException extends RuntimeException
An exception which is thrown when somebody attempts to use AI component features without activating the associated feature flag first.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • AIComponentsExperimentalFeatureException

      public AIComponentsExperimentalFeatureException()
      Creates a new exception with a default message.
    • AIComponentsExperimentalFeatureException

      public AIComponentsExperimentalFeatureException(String componentName)
      Creates a new exception with a message that includes the specific component name.
      Parameters:
      componentName - the name of the component that requires the feature flag, or null for a generic message
    • AIComponentsExperimentalFeatureException

      public AIComponentsExperimentalFeatureException(String componentName, String specificFeatureFlagId)
      Creates a new exception with a message that includes the specific component name and feature flag ID. When a specific feature flag ID is provided, the message will mention both the specific flag and the umbrella AI components flag.
      Parameters:
      componentName - the name of the component that requires the feature flag, or null for a generic message
      specificFeatureFlagId - the specific feature flag ID that can enable this feature, or null to only mention the umbrella AI components flag