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 BonitaException
Thrown if a bad state of the task is detected by the methods dedicated to
change the state of the task within the RuntimeAPI.
- Author:
- Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras
- See Also:
- Serialized Form
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,
TaskUUID taskUUID,
java.util.Set<TaskState> expectedStates,
TaskState currentState)
- Constructs an IllegalTaskStateTException.
- Parameters:
msg
- the detail message.taskUUID
- the task Id.expectedStates
- the expected states.currentState
- the current state.
IllegalTaskStateException
public IllegalTaskStateException(IllegalTaskStateException e)
build
public static IllegalTaskStateException build(java.lang.Throwable e)
getTaskUUID
public TaskUUID getTaskUUID()
getExpectedStates
public java.util.Set<TaskState> getExpectedStates()
getCurrentState
public TaskState getCurrentState()
Copyright © 2008 OW2 Consortium. All Rights Reserved.