Package 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
-
- All Implemented Interfaces:
Serializable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalUseOfCommandException()
Instantiates anIllegalUseOfCommandException
.IllegalUseOfCommandException(String message)
Instantiates anIllegalUseOfCommandException
with the given message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalUseOfCommandException
public IllegalUseOfCommandException()
Instantiates anIllegalUseOfCommandException
.
-
IllegalUseOfCommandException
public IllegalUseOfCommandException(String message)
Instantiates anIllegalUseOfCommandException
with the given message.- Parameters:
message
- the message
-
-