Skip to content

Class Dynamic2CommandExceptionType

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

Creates command syntax exceptions whose messages depend on two runtime values.

public class Dynamic2CommandExceptionType : ICommandExceptionType

Inheritance

objectDynamic2CommandExceptionType

Implements

ICommandExceptionType

Inherited Members

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

Constructors

Dynamic2CommandExceptionType(Func<object, object, IMessage>)

Creates command syntax exceptions whose messages depend on two runtime values.

public Dynamic2CommandExceptionType(Func<object, object, IMessage> function)

Parameters

function Func<object, object, IMessage>

The message factory.

Methods

Create(object, object)

Creates an exception without input context.

public CommandSyntaxException Create(object a, object b)

Parameters

a object

The first message value.

b object

The second message value.

Returns

CommandSyntaxException

The command syntax exception.

CreateWithContext(IImmutableStringReader, object, object)

Creates an exception at the reader’s current cursor.

public CommandSyntaxException CreateWithContext(IImmutableStringReader reader, object a, object b)

Parameters

reader IImmutableStringReader

The source and cursor to capture.

a object

The first message value.

b object

The second message value.

Returns

CommandSyntaxException

The contextual exception.