Skip to content

Class SimpleCommandExceptionType

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

Creates command syntax exceptions with a fixed message.

public class SimpleCommandExceptionType : ICommandExceptionType

Inheritance

objectSimpleCommandExceptionType

Implements

ICommandExceptionType

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SimpleCommandExceptionType(IMessage)

Creates command syntax exceptions with a fixed message.

public SimpleCommandExceptionType(IMessage message)

Parameters

message IMessage

The message shared by created exceptions.

Methods

Create()

Creates an exception without input context.

public CommandSyntaxException Create()

Returns

CommandSyntaxException

The command syntax exception.

CreateWithContext(IImmutableStringReader)

Creates an exception at the reader’s current cursor.

public CommandSyntaxException CreateWithContext(IImmutableStringReader reader)

Parameters

reader IImmutableStringReader

The source and cursor to capture.

Returns

CommandSyntaxException

The contextual command syntax exception.

ToString()

Returns the fixed message text.

public override string ToString()

Returns

string

The message value.