/** * Handle an exception that occurred in this state during the context of the current flow execution request. * @param exception the exception that occurred * @param context the flow execution control context */ public boolean handleException(FlowExecutionException exception, RequestControlContext context) { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occurred during an execution of this flow. * @param exception the exception that occurred * @param context the flow execution control context */ public boolean handleException(FlowExecutionException exception, RequestControlContext context) throws FlowExecutionException { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occurred during an execution of this flow. * @param exception the exception that occurred * @param context the flow execution control context */ public boolean handleException(FlowExecutionException exception, RequestControlContext context) throws FlowExecutionException { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occurred during an execution of this flow. * @param exception the exception that occurred * @param context the flow execution control context */ public boolean handleException(FlowExecutionException exception, RequestControlContext context) throws FlowExecutionException { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occured in this state during the context of the current flow execution request. * @param exception the exception that occured * @param context the flow execution control context * @return the selected error view, or <code>null</code> if no handler matched or returned a non-null view * selection */ public ViewSelection handleException(FlowExecutionException exception, RequestControlContext context) { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occured during an execution of this flow. * @param exception the exception that occured * @param context the flow execution control context * @return the selected error view, or <code>null</code> if no handler matched or returned a non-null view * selection */ public ViewSelection handleException(FlowExecutionException exception, RequestControlContext context) throws FlowExecutionException { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occurred in this state during the context of the current flow execution request. * @param exception the exception that occurred * @param context the flow execution control context */ public boolean handleException(FlowExecutionException exception, RequestControlContext context) { return getExceptionHandlerSet().handleException(exception, context); }
/** * Handle an exception that occurred in this state during the context of the current flow execution request. * @param exception the exception that occurred * @param context the flow execution control context */ public boolean handleException(FlowExecutionException exception, RequestControlContext context) { return getExceptionHandlerSet().handleException(exception, context); }
public void testHandleException() { FlowExecutionExceptionHandlerSet handlerSet = new FlowExecutionExceptionHandlerSet(); handlerSet.add(new TestStateExceptionHandler(NullPointerException.class, "null")); handlerSet.add(new TestStateExceptionHandler(FlowExecutionException.class, "execution 1")); handlerSet.add(new TestStateExceptionHandler(FlowExecutionException.class, "execution 2")); assertEquals(3, handlerSet.size()); FlowExecutionException e = new FlowExecutionException("flowId", "stateId", "Test"); assertTrue(handlerSet.handleException(e, context)); assertFalse(context.getFlowScope().contains("null")); assertTrue(context.getFlowScope().contains("execution 1")); assertFalse(context.getFlowScope().contains("execution 2")); }