本文整理了Java中org.springframework.webflow.engine.Flow.handleException()
方法的一些代码示例,展示了Flow.handleException()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.handleException()
方法的具体详情如下:
包路径:org.springframework.webflow.engine.Flow
类名称:Flow
方法名:handleException
[英]Handle an exception that occured during an execution of this flow.
[中]处理执行此流期间发生的异常。
代码示例来源:origin: org.springframework.webflow/spring-webflow
/**
* Try to handle given exception using execution exception handlers registered at the flow level. Returns null if no
* handler handled the exception.
* @return true if the exception was handled
*/
private boolean tryFlowHandlers(FlowExecutionException exception, RequestControlContext context) {
return getActiveSessionInternal().getFlow().handleException(exception, context);
}
代码示例来源:origin: org.springframework/spring-webflow
/**
* Try to handle given exception using execution exception handlers registered at the flow level. Returns null if no
* handler handled the exception.
*/
private ViewSelection tryFlowHandlers(FlowExecutionException exception, RequestControlContext context) {
return getCurrentFlow().handleException(exception, context);
}
代码示例来源:origin: org.springframework.webflow/org.springframework.webflow
/**
* Try to handle given exception using execution exception handlers registered at the flow level. Returns null if no
* handler handled the exception.
* @return true if the exception was handled
*/
private boolean tryFlowHandlers(FlowExecutionException exception, RequestControlContext context) {
return getCurrentFlow().handleException(exception, context);
}
代码示例来源:origin: spring-projects/spring-webflow
/**
* Try to handle given exception using execution exception handlers registered at the flow level. Returns null if no
* handler handled the exception.
* @return true if the exception was handled
*/
private boolean tryFlowHandlers(FlowExecutionException exception, RequestControlContext context) {
return getActiveSessionInternal().getFlow().handleException(exception, context);
}
代码示例来源:origin: spring-projects/spring-webflow
public void testHandleExceptionNoMatch() {
MockRequestControlContext context = new MockRequestControlContext(flow);
FlowExecutionException e = new FlowExecutionException(flow.getId(), flow.getStartState().getId(), "Oops!",
new TestException());
try {
flow.handleException(e, context);
} catch (FlowExecutionException ex) {
// expected
}
}
代码示例来源:origin: spring-projects/spring-webflow
public void testHandleException() {
flow.getExceptionHandlerSet().add(
new TransitionExecutingFlowExecutionExceptionHandler().add(TestException.class, "myState2"));
MockRequestControlContext context = new MockRequestControlContext(flow);
context.setCurrentState(flow.getStateInstance("myState1"));
FlowExecutionException e = new FlowExecutionException(flow.getId(), flow.getStartState().getId(), "Oops!",
new TestException());
flow.handleException(e, context);
assertFalse(context.getFlowExecutionContext().isActive());
}
内容来源于网络,如有侵权,请联系作者删除!