-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,072 additions
and
328 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
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
26 changes: 26 additions & 0 deletions
26
...t/src/main/java/revxrsal/commands/bukkit/exception/MissingLocationParameterException.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,26 @@ | ||
package revxrsal.commands.bukkit.exception; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import revxrsal.commands.exception.InvalidValueException; | ||
|
||
/** | ||
* Thrown when a parameter of {@link org.bukkit.Location} is not specified, such | ||
* as {@code x} or {@code y} or {@code z}. | ||
*/ | ||
public class MissingLocationParameterException extends InvalidValueException { | ||
|
||
public enum MissingAxis { | ||
X, Y, Z | ||
} | ||
|
||
private final @NotNull MissingAxis missingAxis; | ||
|
||
public MissingLocationParameterException(@NotNull String input, @NotNull MissingAxis missingAxis) { | ||
super(input); | ||
this.missingAxis = missingAxis; | ||
} | ||
|
||
public @NotNull MissingAxis axis() { | ||
return missingAxis; | ||
} | ||
} |
Oops, something went wrong.