Interface ExceptionResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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, logging the error, rethrowing the exception, or providing a fallback value.
-
Method Summary
-
Method Details
-
resolve
Resolves the given expression by providing a result or handling an exception that occurred during placeholder processing within a document. It allows implementations to log errors, rethrow exceptions, or return fallback values.- Parameters:
expression- the placeholder expression that was being evaluated when the exception occurred.message- a descriptive message providing context about the exceptioncause- the underlying exception that was encountered- Returns:
- a resolved fallback value as a String, which could be used as a replacement for the placeholder.
-