public class BladeParseError extends StacklessException
ArgumentProvider or SenderProvider
fails to parse a command argument.
The message will be shown to the command sender.
| Modifier and Type | Method and Description |
|---|---|
static @NotNull BladeParseError |
fatal(@NotNull java.lang.String message)
Creates a fatal parse error.
|
boolean |
isRecoverable() |
static @NotNull BladeParseError |
recoverable(@NotNull java.lang.String message)
Creates a recoverable parse error.
|
fillInStackTrace@NotNull public static @NotNull BladeParseError fatal(@NotNull @NotNull java.lang.String message)
This will cause command execution to fail. The message will be shown to the command sender.
message - the error message@NotNull public static @NotNull BladeParseError recoverable(@NotNull @NotNull java.lang.String message)
This allows command execution to complete if the parameter is optional. In that case, the parameter will be set to null and the error will be silently ignored.
message - the error messagepublic boolean isRecoverable()