Package io.jmix.flowui.exception
Class ComponentValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jmix.flowui.exception.ValidationException
io.jmix.flowui.exception.ComponentValidationException
- All Implemented Interfaces:
ValidationException.HasRelatedComponent,Serializable
public class ComponentValidationException
extends ValidationException
implements ValidationException.HasRelatedComponent
Represents a validation exception that is specifically related to a UI
Component.
This exception is intended to be used in cases where a validation failure needs to be directly
associated with a particular Component in the UI. It provides a reference to
the associated component to facilitate handling or error reporting.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.exception.ValidationException
ValidationException.HasRelatedComponent -
Constructor Summary
ConstructorsConstructorDescriptionComponentValidationException(String message, com.vaadin.flow.component.Component component) ComponentValidationException(String message, com.vaadin.flow.component.Component component, Exception cause) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentReturns associated component.Methods inherited from class io.jmix.flowui.exception.ValidationException
getDetailsMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ComponentValidationException
-
ComponentValidationException
-
-
Method Details
-
getComponent
public com.vaadin.flow.component.Component getComponent()Description copied from interface:ValidationException.HasRelatedComponentReturns associated component.- Specified by:
getComponentin interfaceValidationException.HasRelatedComponent- Returns:
- the component associated with this instance
-