public class FlowExecutionExceptionHandlerSet
extends java.lang.Object
FlowExecutionExceptionHandler
,
Flow.getExceptionHandlerSet()
,
State.getExceptionHandlerSet()
Constructor and Description |
---|
FlowExecutionExceptionHandlerSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(FlowExecutionExceptionHandler exceptionHandler)
Add a state exception handler to this set.
|
boolean |
addAll(FlowExecutionExceptionHandler[] exceptionHandlers)
Add a collection of state exception handler instances to this set.
|
boolean |
contains(FlowExecutionExceptionHandler exceptionHandler)
Tests if this state exception handler is in this set.
|
boolean |
handleException(FlowExecutionException exception,
RequestControlContext context)
Handle an exception that occurred during the context of the current flow execution request.
|
boolean |
remove(FlowExecutionExceptionHandler exceptionHandler)
Remove the exception handler instance from this set.
|
int |
size()
Returns the size of this state exception handler set.
|
FlowExecutionExceptionHandler[] |
toArray()
Convert this list to a typed state exception handler array.
|
java.lang.String |
toString() |
public boolean add(FlowExecutionExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler to addpublic boolean addAll(FlowExecutionExceptionHandler[] exceptionHandlers)
exceptionHandlers
- the exception handlers to addpublic boolean contains(FlowExecutionExceptionHandler exceptionHandler)
exceptionHandler
- the exception handlerpublic boolean remove(FlowExecutionExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler to addpublic int size()
public FlowExecutionExceptionHandler[] toArray()
public boolean handleException(FlowExecutionException exception, RequestControlContext context)
This implementation iterates over the ordered set of exception handler objects, delegating to each handler in the set until one handles the exception that occurred.
exception
- the exception that occurredcontext
- the flow execution control contextpublic java.lang.String toString()
toString
in class java.lang.Object