-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from adias408/functional_sample_command
Functional sample command
- Loading branch information
Showing
8 changed files
with
96 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
MiniLib/src/edu/wpi/first/wpilibj/command/IllegalUseOfCommandException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/*----------------------------------------------------------------------------*/ | ||
/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */ | ||
/* Open Source Software - may be modified and shared by FRC teams. The code */ | ||
/* must be accompanied by the FIRST BSD license file in the root directory of */ | ||
/* the project. */ | ||
/*----------------------------------------------------------------------------*/ | ||
|
||
package edu.wpi.first.wpilibj.command; | ||
|
||
/** | ||
* This exception will be thrown if a command is used illegally. There are several ways for this to | ||
* happen. | ||
* | ||
* <p> Basically, a command becomes "locked" after it is first started or added to a command group. | ||
* </p> | ||
* | ||
* <p> 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. </p> | ||
*/ | ||
public class IllegalUseOfCommandException extends RuntimeException { | ||
/** | ||
* Instantiates an {@link IllegalUseOfCommandException}. | ||
*/ | ||
public IllegalUseOfCommandException() { | ||
} | ||
|
||
/** | ||
* Instantiates an {@link IllegalUseOfCommandException} with the given message. | ||
* | ||
* @param message the message | ||
*/ | ||
public IllegalUseOfCommandException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters