org.ow2.bonita.facade.exception
Class IllegalTaskStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ow2.bonita.util.BonitaException
              extended by 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.
 
Method Summary
 org.ow2.bonita.util.Constants.TaskState getCurrentState()
           
 java.util.Set<org.ow2.bonita.util.Constants.TaskState> getExpectedStates()
           
 java.lang.String getTaskId()
           
 
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
 

Constructor Detail

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.
Method Detail

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()