Class CommandSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.mojang.brigadier.exceptions.CommandSyntaxException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic BuiltInExceptionProviderstatic final intprivate final intstatic booleanprivate final Stringprivate final Messageprivate final CommandExceptionType -
Constructor Summary
ConstructorsConstructorDescriptionCommandSyntaxException(CommandExceptionType type, Message message) CommandSyntaxException(CommandExceptionType type, Message message, String input, int cursor) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CONTEXT_AMOUNT
public static final int CONTEXT_AMOUNT- See Also:
-
ENABLE_COMMAND_STACK_TRACES
public static boolean ENABLE_COMMAND_STACK_TRACES -
BUILT_IN_EXCEPTIONS
-
type
-
message
-
input
-
cursor
private final int cursor
-
-
Constructor Details
-
CommandSyntaxException
-
CommandSyntaxException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getRawMessage
-
getContext
-
getType
-
getInput
-
getCursor
public int getCursor()
-