Package science.aist.gtf.visualization
Class ExceptionPrinter
- java.lang.Object
-
- science.aist.gtf.visualization.FreemarkerPrinter<Collection<science.aist.jack.data.Pair<String,Exception>>>
-
- science.aist.gtf.visualization.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
-
-
Field Summary
-
Fields inherited from class science.aist.gtf.visualization.FreemarkerPrinter
configuration
-
-
Constructor Summary
Constructors Constructor Description ExceptionPrinter(String templateDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExceptionTemplate()
void
print(Collection<science.aist.jack.data.Pair<String,Exception>> exceptions)
Prints the exceptions into the templatevoid
setExceptionTemplate(String template)
-
Methods inherited from class science.aist.gtf.visualization.FreemarkerPrinter
addAdditionalTemplateValue, addTemplate, addTemplatePreprocessor, applyTemplate, process, removeAdditionalTemplateValue, removeTemplatePreprocessor, setFormat, transform
-
-
-
-
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)
-
-