Class DisallowedWorkflowTransitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ubic.gemma.persistence.service.expression.experiment.DisallowedWorkflowTransitionException
- All Implemented Interfaces:
Serializable
Thrown when
WorkflowService.advance(Investigation, WorkflowState, String, Long) is
asked for a transition the state machine forbids (e.g. Discovery
-> Public). The REST layer maps this to a 409 Conflict with a body
listing getAllowedNextStates().- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDisallowedWorkflowTransitionException(WorkflowState currentState, WorkflowState targetState, Set<WorkflowState> allowedNextStates) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DisallowedWorkflowTransitionException
public DisallowedWorkflowTransitionException(WorkflowState currentState, WorkflowState targetState, Set<WorkflowState> allowedNextStates)
-
-
Method Details
-
getCurrentState
-
getTargetState
-
getAllowedNextStates
-