Class CommandSyntaxException
Namespace: Void.Minecraft.Commands.Brigadier.Exceptions
Assembly: Void.Minecraft.dll
public class CommandSyntaxException : Exception, ISerializableInheritance
object ← Exception ← CommandSyntaxException
Implements
Inherited Members
Exception.GetBaseException(), Exception.GetType(), Exception.ToString(), Exception.Data, Exception.HelpLink, Exception.HResult, Exception.InnerException, Exception.Message, Exception.Source, Exception.StackTrace, Exception.TargetSite, Exception.SerializeObjectState, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
CommandSyntaxException(ICommandExceptionType, IMessage, string, int)
public CommandSyntaxException(ICommandExceptionType type, IMessage message, string input = "", int cursor = -1)Parameters
message IMessage
input string
cursor int
Fields
ContextAmount
public const int ContextAmount = 10Field Value
Properties
BuiltInExceptions
public static IBuiltInExceptionProvider BuiltInExceptions { get; set; }Property Value
Cursor
public int Cursor { get; }Property Value
Input
public string Input { get; }Property Value
Message
Gets a message that describes the current exception.
public override string Message { get; }Property Value
RawMessage
public IMessage RawMessage { get; }Property Value
Type
public ICommandExceptionType Type { get; }Property Value
Methods
GetContext()
public string? GetContext()Returns
GetMessage()
public string GetMessage()