Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.wpi.first.wpilibj.command
Class IllegalUseOfCommandException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  edu.wpi.first.wpilibj.command.IllegalUseOfCommandException

    public class IllegalUseOfCommandException

extends 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.

Author:
  Joe Grinstead

Constructor Summary
`IllegalUseOfCommandException()` Instantiates an `IllegalUseOfCommandException`.
`IllegalUseOfCommandException(String message)` Instantiates an `IllegalUseOfCommandException` with the given message.

Method Summary

Methods inherited from class java.lang.Throwable
`getMessage, printStackTrace, toString`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### IllegalUseOfCommandException

    public IllegalUseOfCommandException()

  Instantiates an `IllegalUseOfCommandException`.

### IllegalUseOfCommandException

    public IllegalUseOfCommandException(String message)

  Instantiates an `IllegalUseOfCommandException` with the given message.

  Parameters:
    `message` - the message

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| " 2013 FRC Java API "
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

"
For updated information see the Java FRC site
"