Package com.vaadin.flow.component.ai
Class AIComponentsExperimentalFeatureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.flow.component.ai.AIComponentsExperimentalFeatureException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionCreates a new exception with a default message.AIComponentsExperimentalFeatureException(String componentName) Creates a new exception with a message that includes the specific component name.AIComponentsExperimentalFeatureException(String componentName, String specificFeatureFlagId) Creates a new exception with a message that includes the specific component name and feature flag ID. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AIComponentsExperimentalFeatureException
public AIComponentsExperimentalFeatureException()Creates a new exception with a default message. -
AIComponentsExperimentalFeatureException
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, ornullfor a generic message
-
AIComponentsExperimentalFeatureException
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, ornullfor a generic messagespecificFeatureFlagId- the specific feature flag ID that can enable this feature, ornullto only mention the umbrella AI components flag
-