org.springframework.webflow.engine
Interface FlowExecutionExceptionHandler

All Known Implementing Classes:
TransitionExecutingStateExceptionHandler

public interface FlowExecutionExceptionHandler

A strategy for handling an exception that occurs at runtime during the execution of a flow definition.

Author:
Keith Donald

Method Summary
 ViewSelection handle(FlowExecutionException exception, RequestControlContext context)
          Handle the exception in the context of the current request, optionally making an error view selection that should be rendered.
 boolean handles(FlowExecutionException exception)
          Can this handler handle the given exception?
 

Method Detail

handles

boolean handles(FlowExecutionException exception)
Can this handler handle the given exception?

Parameters:
exception - the exception that occured
Returns:
true if yes, false if no

handle

ViewSelection handle(FlowExecutionException exception,
                     RequestControlContext context)
Handle the exception in the context of the current request, optionally making an error view selection that should be rendered.

Parameters:
exception - the exception that occured
context - the execution control context for this request
Returns:
the selected error view that should be displayed (may be null if the handler chooses not to select a view, in which case other exception handlers may be given a chance to handle the exception)


Copyright © 2004-2007. All Rights Reserved.