Class ExceptionReportRelevantComponentNode

java.lang.Object
com.vaadin.copilot.exception.report.ExceptionReportRelevantComponentNode

public class ExceptionReportRelevantComponentNode extends Object
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 Details

    • ExceptionReportRelevantComponentNode

      public ExceptionReportRelevantComponentNode()
      Default constructor for ExceptionReportRelevantComponentNode.

      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 new ExceptionReportRelevantComponentNode with the given relevance label and the target Component.

      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 exception
      component - the UI component considered relevant; must not be null
      Throws:
      IllegalArgumentException - if component is null
  • Method Details

    • getRelevance

      public String getRelevance()
    • setRelevance

      public void setRelevance(String relevance)
    • getNodeId

      public Integer getNodeId()
    • setNodeId

      public void setNodeId(Integer nodeId)
    • getUiId

      public Integer getUiId()
    • setUiId

      public void setUiId(Integer uiId)