Class SpongeExceptionAdapter
java.lang.Object
revxrsal.commands.exception.CommandExceptionAdapter
revxrsal.commands.exception.DefaultExceptionHandler
revxrsal.commands.sponge.exception.SpongeExceptionAdapter
- All Implemented Interfaces:
CommandExceptionHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class revxrsal.commands.exception.CommandExceptionAdapter
CommandExceptionAdapter.Ignore
-
Field Summary
Fields inherited from class revxrsal.commands.exception.DefaultExceptionHandler
FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invalidPlayer
(@NotNull CommandActor actor, @NotNull InvalidPlayerException exception) void
invalidWorld
(@NotNull CommandActor actor, @NotNull InvalidWorldException exception) void
onTextMessage
(@NotNull SpongeCommandActor actor, @NotNull org.spongepowered.api.util.TextMessageException e) void
senderNotConsole
(@NotNull CommandActor actor, @NotNull SenderNotConsoleException exception) void
senderNotPlayer
(@NotNull CommandActor actor, @NotNull SenderNotPlayerException exception) Methods inherited from class revxrsal.commands.exception.DefaultExceptionHandler
argumentParse, commandInvocation, cooldown, formatTimeFancy, invalidBoolean, invalidCommand, invalidEnumValue, invalidHelpPage, invalidNumber, invalidSubcommand, invalidURL, invalidUUID, missingArgument, noPermission, noSubcommandSpecified, numberNotInRange, onUnhandledException, plural, sendableException, toFancyString, tooManyArguments
Methods inherited from class revxrsal.commands.exception.CommandExceptionAdapter
handleException
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SpongeExceptionAdapter
public SpongeExceptionAdapter()
-
-
Method Details
-
onTextMessage
public void onTextMessage(@NotNull @NotNull SpongeCommandActor actor, @NotNull @NotNull org.spongepowered.api.util.TextMessageException e) -
senderNotPlayer
public void senderNotPlayer(@NotNull @NotNull CommandActor actor, @NotNull @NotNull SenderNotPlayerException exception) -
senderNotConsole
public void senderNotConsole(@NotNull @NotNull CommandActor actor, @NotNull @NotNull SenderNotConsoleException exception) -
invalidPlayer
public void invalidPlayer(@NotNull @NotNull CommandActor actor, @NotNull @NotNull InvalidPlayerException exception) -
invalidWorld
public void invalidWorld(@NotNull @NotNull CommandActor actor, @NotNull @NotNull InvalidWorldException exception)
-