Class ExceptionReportUtil


  • public class ExceptionReportUtil
    extends Object
    Utilities for logging exception details in an ExceptionReport.
    Since:
    5.3
    • Constructor Detail

      • ExceptionReportUtil

        public ExceptionReportUtil()
    • Method Detail

      • generateReportString

        public static String generateReportString​(String reportTitle,
                                                  ExceptionReport report,
                                                  boolean includeStackTrace)
        Generate a string suitable for logging from the given report.
        Parameters:
        reportTitle - the title to include at the top of the log message
        report - the report
        includeStackTrace - whether to include the details of any exceptions raised
        Returns:
        the report string