pro.verron.officestamper.api.ExceptionResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine Show documentation
Show all versions of engine Show documentation
Office-stamper is a Java template engine for docx documents, forked from org.wickedsource.docx-stamper
The newest version!
package pro.verron.officestamper.api;
/**
* ExceptionResolver is a functional interface used to resolve the behavior when an exception occurs during
* the processing of a placeholder.
* Implementations of this interface define how to handle the exception,
* potentially logging the error, rethrowing the exception, or providing a fallback value.
*/
@FunctionalInterface
public interface ExceptionResolver {
String resolve(Placeholder placeholder, String message, Exception cause);
}