CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
An exception used to create command-related errors for the CustomArgument. More...
Public Member Functions | |
CustomArgumentException (BaseComponent[] errorMessage) | |
Constructs a CustomArgumentException with a given error message. More... | |
CustomArgumentException (String errorMessage) | |
Constructs a CustomArgumentException with a given error message. More... | |
CustomArgumentException (MessageBuilder errorMessage) | |
Constructs a CustomArgumentException with a given error message. More... | |
CommandSyntaxException | toCommandSyntax (String result, CommandContext<?> cmdCtx) |
Converts this CustomArgumentException into a CommandSyntaxException. More... | |
Static Public Member Functions | |
static CustomArgumentException | fromBaseComponents (BaseComponent[] errorMessage) |
Constructs a CustomArgumentException with a given error message. More... | |
static CustomArgumentException | fromString (String errorMessage) |
Constructs a CustomArgumentException with a given error message. More... | |
static CustomArgumentException | fromAdventureComponent (Component errorMessage) |
Constructs a CustomArgumentException with a given error message. More... | |
static CustomArgumentException | fromMessageBuilder (MessageBuilder errorMessage) |
Constructs a CustomArgumentException with a given error message. More... | |
An exception used to create command-related errors for the CustomArgument.
dev.jorel.commandapi.arguments.CustomArgument< T, B >.CustomArgumentException.CustomArgumentException | ( | BaseComponent[] | errorMessage | ) |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
dev.jorel.commandapi.arguments.CustomArgument< T, B >.CustomArgumentException.CustomArgumentException | ( | String | errorMessage | ) |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
dev.jorel.commandapi.arguments.CustomArgument< T, B >.CustomArgumentException.CustomArgumentException | ( | MessageBuilder | errorMessage | ) |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
|
static |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
|
static |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
|
static |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
|
static |
Constructs a CustomArgumentException with a given error message.
errorMessage | the error message to display to the user when this exception is thrown |
CommandSyntaxException dev.jorel.commandapi.arguments.CustomArgument< T, B >.CustomArgumentException.toCommandSyntax | ( | String | result, |
CommandContext<?> | cmdCtx | ||
) |
Converts this CustomArgumentException into a CommandSyntaxException.
result | the argument that the user entered that caused this exception to arise |
cmdCtx | the command context that executed this command |