Class ExceptionPrinter

  • All Implemented Interfaces:
    TemplateEngine<Collection<science.aist.jack.data.Pair<String,​Exception>>>

    public class ExceptionPrinter
    extends FreemarkerPrinter<Collection<science.aist.jack.data.Pair<String,​Exception>>>

    The Exception printer generates a report of exceptions provided to it.

    It automatically groups exceptions according to:

    • a KEY provided by a caller
    • the LOCATION the exception occurred
    • the EXCEPTION that occurred
    Since:
    1.0
    Author:
    Oliver Krauss, Andreas Pointner
    • Constructor Detail

      • ExceptionPrinter

        public ExceptionPrinter​(String templateDirectory)
    • Method Detail

      • print

        public void print​(Collection<science.aist.jack.data.Pair<String,​Exception>> exceptions)
        Prints the exceptions into the template
        Parameters:
        exceptions - to be printed <Key, Exception>
      • getExceptionTemplate

        public String getExceptionTemplate()
      • setExceptionTemplate

        public void setExceptionTemplate​(String template)