1 16 package org.springframework.webflow.execution; 17 18 import org.springframework.webflow.definition.StateDefinition; 19 20 28 public class EnterStateVetoException extends FlowExecutionException { 29 30 33 private String vetoedStateId; 34 35 42 public EnterStateVetoException(String flowId, String sourceStateId, String vetoedStateId, String message) { 43 super(flowId, sourceStateId, message); 44 this.vetoedStateId = vetoedStateId; 45 } 46 47 55 public EnterStateVetoException(String flowId, String sourceStateId, String vetoedStateId, String message, Throwable cause) { 56 super(flowId, sourceStateId, message, cause); 57 this.vetoedStateId = vetoedStateId; 58 } 59 60 66 public EnterStateVetoException(RequestContext context, StateDefinition vetoedState, String message) { 67 this(context.getActiveFlow().getId(), context.getCurrentState().getId(), vetoedState.getId(), message); 68 } 69 70 77 public EnterStateVetoException(RequestContext context, StateDefinition vetoedState, String message, Throwable cause) { 78 this(context.getActiveFlow().getId(), context.getCurrentState().getId(), vetoedState.getId(), message, cause); 79 } 80 81 84 public String getVetoedStateId() { 85 return vetoedStateId; 86 } 87 } | Popular Tags |