org.ow2.bonita.facade.exception
Class IllegalTaskStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ow2.bonita.util.BonitaException
org.ow2.bonita.facade.exception.IllegalTaskStateException
- All Implemented Interfaces:
- java.io.Serializable
public class IllegalTaskStateException
- extends org.ow2.bonita.util.BonitaException
This exception is thrown when the current state differs from the expected states.
- Author:
- Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras
- See Also:
- Serialized Form
Constructor Summary |
IllegalTaskStateException(java.lang.String msg,
java.lang.String taskId,
java.util.Set<org.ow2.bonita.util.Constants.TaskState> expectedStates,
org.ow2.bonita.util.Constants.TaskState currentState)
Constructs an IllegalTaskStateTException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IllegalTaskStateException
public IllegalTaskStateException(java.lang.String msg,
java.lang.String taskId,
java.util.Set<org.ow2.bonita.util.Constants.TaskState> expectedStates,
org.ow2.bonita.util.Constants.TaskState currentState)
- Constructs an IllegalTaskStateTException.
- Parameters:
msg
- the detail message.taskId
- the task Id.expectedStates
- the expected states.currentState
- the current state.
getTaskId
public java.lang.String getTaskId()
getExpectedStates
public java.util.Set<org.ow2.bonita.util.Constants.TaskState> getExpectedStates()
getCurrentState
public org.ow2.bonita.util.Constants.TaskState getCurrentState()