Class ExceptionReportFileItem
java.lang.Object
com.vaadin.copilot.exception.report.ExceptionReportFileItem
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionExceptionReportFileItem(File file, String content) ExceptionReportFileItem(String fileName, String content) Constructs a newExceptionReportFileItemwith the specified file and content. -
Method Summary
Modifier and TypeMethodDescriptionContent of the item.getName()Name or description of the item.
-
Constructor Details
-
ExceptionReportFileItem
Constructs a newExceptionReportFileItemwith the specified file and content.- Parameters:
fileName- the name of the file being representedcontent- the textual content of the file
-
ExceptionReportFileItem
-
-
Method Details
-
getName
Description copied from interface:ExceptionReportItemName or description of the item. Name is used for section header in GitHub.- Specified by:
getNamein interfaceExceptionReportItem- Returns:
- the name e.g. HelloWorldView.java
-
getContent
Description copied from interface:ExceptionReportItemContent of the item.- Specified by:
getContentin interfaceExceptionReportItem- Returns:
- the content. e.g. class source or stack trace
-