ilog.rules.teamserver.model.states

Class IllegalTransitionException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • ilog.rules.teamserver.model.states.IllegalTransitionException
  • All Implemented Interfaces:
    java.io.Serializable


    public class IllegalTransitionException
    extends java.lang.Exception

    Defines an exception that is thrown when a ControlledState instance attempts to set its value to a state that is not a valid successor of this current value.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      IllegalTransitionException(java.lang.Object fromState, java.lang.Object toState)
      Constructs an exception stating that the provided transition is not allowed.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object getFromState()
      Returns the start state of the forbidden transition.
      java.lang.String getMessage() 
      java.lang.Object getToState()
      Returns the end state of the forbidden transition.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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 Detail

      • IllegalTransitionException

        public IllegalTransitionException(java.lang.Object fromState,
                                  java.lang.Object toState)

        Constructs an exception stating that the provided transition is not allowed.

        Parameters:
        fromState - The start state of the transition. Can be null.
        toState - The end state of the transition. Can be null.
    • Method Detail

      • getFromState

        public java.lang.Object getFromState()

        Returns the start state of the forbidden transition.

        Returns:
        the start state of the transition.
      • getToState

        public java.lang.Object getToState()

        Returns the end state of the forbidden transition.

        Returns:
        the end state of the transition.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable

© Copyright IBM Corp. 1987, 2017