Package org.springframework.webflow.execution

Examples of org.springframework.webflow.execution.FlowExecutionException


    assertEquals("Table should only have one row", 1, jdbcTemplate.queryForInt("select count(*) from T_BEAN"));
    MockRequestContext context = new MockRequestContext();
    MockFlowSession flowSession = new MockFlowSession();
    flowSession.getDefinition().getAttributes().put("persistenceContext", "true");
    assertSessionNotBound();
    hibernateListener.exceptionThrown(context, new FlowExecutionException("foo", "bar", "test"));
    assertSessionNotBound();
  }
View Full Code Here


      }
      else if (hintsValue instanceof Object[]) {
        return (Object[]) hintsValue;
      }
      else {
        throw new FlowExecutionException(flowId, stateId,
            "Failed to resolve validation hints [" + hintsValue + "]");
      }
    }
    catch (EvaluationException e) {
      throw new FlowExecutionException(flowId, stateId,
          "Failed to resolve validation hints expression [" + expr + "]", e);
    }
  }
View Full Code Here

   * @throws FlowExecutionException
   */
  protected Class<?> handleUnresolvedHint(Object model, String flowId, String stateId, String hint)
      throws FlowExecutionException {

    throw new FlowExecutionException(flowId, stateId, "Failed to resolve validation hint [" + hint + "]");
  }
View Full Code Here

  private FlowExecutionException wrap(Exception e) {
    if (isActive()) {
      FlowSession session = getActiveSession();
      String flowId = session.getDefinition().getId();
      String stateId = session.getState() != null ? session.getState().getId() : null;
      return new FlowExecutionException(flowId, stateId, "Exception thrown in state '" + stateId + "' of flow '"
          + flowId + "'", e);
    } else {
      return new FlowExecutionException(flow.getId(), null, "Exception thrown within inactive flow '"
          + flow.getId() + "'", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.FlowExecutionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.