Class ExceptionReportFileItem

java.lang.Object
com.vaadin.copilot.exception.report.ExceptionReportFileItem
All Implemented Interfaces:
ExceptionReportItem

public class ExceptionReportFileItem extends Object implements ExceptionReportItem
Represents a file-based item within an ExceptionReport.

This implementation of ExceptionReportItem encapsulates a file's name and its textual content. It can be used to attach configuration files, logs, or other relevant data to an exception report.

  • Constructor Details

    • ExceptionReportFileItem

      public ExceptionReportFileItem(String fileName, String content)
      Constructs a new ExceptionReportFileItem with the specified file and content.
      Parameters:
      fileName - the name of the file being represented
      content - the textual content of the file
    • ExceptionReportFileItem

      public ExceptionReportFileItem(File file, String content)
  • Method Details