Class IllegalUseOfCommandException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by edu.wpi.first.wpilibj.command.IllegalUseOfCommandException
All Implemented Interfaces:

public class IllegalUseOfCommandException
extends java.lang.RuntimeException

This exception will be thrown if a command is used illegally. There are several ways for this to happen.

Basically, a command becomes "locked" after it is first started or added to a command group.

This exception should be thrown if (after a command has been locked) its requirements change, it is put into multiple command groups, it is started from outside its command group, or it adds a new child.

Joe Grinstead
See Also:
Serialized Form

Constructor Summary
          Instantiates an IllegalUseOfCommandException.
IllegalUseOfCommandException(java.lang.String message)
          Instantiates an IllegalUseOfCommandException with the given message.
Method Summary
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


public IllegalUseOfCommandException()
Instantiates an IllegalUseOfCommandException.


public IllegalUseOfCommandException(java.lang.String message)
Instantiates an IllegalUseOfCommandException with the given message.

message - the message