Class ExceptionReportRelevantComponentNode
java.lang.Object
com.vaadin.copilot.exception.report.ExceptionReportRelevantComponentNode
Represents a reference to a relevant UI component node within the context of
an exception report.
Stores metadata about the component's relevance, its node ID, and the UI ID it belongs to. This information helps identify and locate the component in the UI hierarchy where the issue occurred.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forExceptionReportRelevantComponentNode.ExceptionReportRelevantComponentNode(String relevance, com.vaadin.flow.component.Component component) Constructs a newExceptionReportRelevantComponentNodewith the given relevance label and the targetComponent. -
Method Summary
-
Constructor Details
-
ExceptionReportRelevantComponentNode
public ExceptionReportRelevantComponentNode()Default constructor forExceptionReportRelevantComponentNode.Creates an empty instance, typically used for deserialization or manual field population.
-
ExceptionReportRelevantComponentNode
public ExceptionReportRelevantComponentNode(String relevance, com.vaadin.flow.component.Component component) Constructs a newExceptionReportRelevantComponentNodewith the given relevance label and the targetComponent.Extracts and stores the component's node ID and UI ID. Throws an exception if the component is
null.- Parameters:
relevance- a string describing the relevance of the component to the exceptioncomponent- the UI component considered relevant; must not benull- Throws:
IllegalArgumentException- ifcomponentisnull
-
-
Method Details
-
getRelevance
-
setRelevance
-
getNodeId
-
setNodeId
-
getUiId
-
setUiId
-