Class PlayerParser.PlayerParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.parsing.ParserException
com.xpdustry.distributor.api.command.cloud.parser.PlayerParser.PlayerParseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PlayerParser.PlayerParseException.PlayerNotFound,PlayerParser.PlayerParseException.TooManyPlayers
- Enclosing class:
- PlayerParser<C>
public static sealed class PlayerParser.PlayerParseException
extends org.incendo.cloud.exception.parsing.ParserException
permits PlayerParser.PlayerParseException.TooManyPlayers, PlayerParser.PlayerParseException.PlayerNotFound
An exception thrown when a parsing error occurs while searching for a player.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn exception thrown when no player was found for the given input.static final classAn exception thrown when too many players are found for the given input. -
Constructor Summary
ConstructorsConstructorDescriptionPlayerParseException(org.incendo.cloud.context.CommandContext<?> ctx, String input, org.incendo.cloud.caption.Caption caption) Creates a newPlayerParser.PlayerParseException. -
Method Summary
Methods inherited from class org.incendo.cloud.exception.parsing.ParserException
argumentParserClass, captionVariables, context, errorCaption, formatCaption, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PlayerParseException
public PlayerParseException(org.incendo.cloud.context.CommandContext<?> ctx, String input, org.incendo.cloud.caption.Caption caption) Creates a newPlayerParser.PlayerParseException.- Parameters:
ctx- the command contextinput- the input stringcaption- the error caption of this exception
-
-
Method Details
-
getInput
Returns the input string.
-