Skip to content

Class CommandSyntaxException

Namespace: Void.Minecraft.Commands.Brigadier.Exceptions
Assembly: Void.Minecraft.dll

public class CommandSyntaxException : Exception, ISerializable

Inheritance

objectExceptionCommandSyntaxException

Implements

ISerializable

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

type ICommandExceptionType

message IMessage

input string

cursor int

Fields

ContextAmount

public const int ContextAmount = 10

Field Value

int

Properties

BuiltInExceptions

public static IBuiltInExceptionProvider BuiltInExceptions { get; set; }

Property Value

IBuiltInExceptionProvider

Cursor

public int Cursor { get; }

Property Value

int

Input

public string Input { get; }

Property Value

string

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

RawMessage

public IMessage RawMessage { get; }

Property Value

IMessage

Type

public ICommandExceptionType Type { get; }

Property Value

ICommandExceptionType

Methods

GetContext()

public string? GetContext()

Returns

string?

GetMessage()

public string GetMessage()

Returns

string