From 57b0ed9ce690ecd2d274b416f8e7114be902a900 Mon Sep 17 00:00:00 2001 From: Erwin Vervaet Date: Sat, 14 Jun 2008 12:33:17 +0000 Subject: [PATCH] JavaDoc clarification regarding exception handlers that throw exceptions. --- .../webflow/engine/FlowExecutionExceptionHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/engine/FlowExecutionExceptionHandler.java b/spring-webflow/src/main/java/org/springframework/webflow/engine/FlowExecutionExceptionHandler.java index d2e3d04e..578b2d6a 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/engine/FlowExecutionExceptionHandler.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/engine/FlowExecutionExceptionHandler.java @@ -35,6 +35,10 @@ public interface FlowExecutionExceptionHandler { /** * Handle the exception in the context of the current request, optionally making an error view selection that should * be rendered. + *

+ * Note that you should avoid throwing exceptions from an exception handler. If you do, plug in a fallback exception + * handler that handles those kinds of exceptions, otherwise you could end up with an infinite loop while handling + * exceptions. * @param exception the exception that occured * @param context the execution control context for this request * @return the selected error view that should be displayed (may be null if the handler chooses not to select a