Package fr.gouv.vitam.common.exception

# Class StateNotAllowedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
fr.gouv.vitam.common.exception.VitamException
fr.gouv.vitam.common.exception.StateNotAllowedException

All Implemented Interfaces:
  `Serializable`

public class StateNotAllowedException extends VitamException
This exception is thrown only if transition for the currentState to the given new state is not allowed Possible case: current state is completed, any action (next, resume, cancel, pause) current state is running, action is next or resume

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StateNotAllowedException(String message)`

- ## Method Summary

  ### Methods inherited from class fr.gouv.vitam.common.exception.VitamException

  `getVitamError, setVitamError`

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### StateNotAllowedException

    public StateNotAllowedException(String message)