Skip to content

Class Dynamic3CommandExceptionType

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

Represents a command syntax exception type whose message is created from three runtime arguments.

public class Dynamic3CommandExceptionType : ICommandExceptionType

Inheritance

objectDynamic3CommandExceptionType

Implements

ICommandExceptionType

Inherited Members

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

Constructors

Dynamic3CommandExceptionType(Func<object, object, object, IMessage>)

Represents a command syntax exception type whose message is created from three runtime arguments.

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

Parameters

function Func<object, object, object, IMessage>

The factory that receives the values passed to or and returns the exception message.

Methods

Create(object, object, object)

Creates an exception without input context.

public CommandSyntaxException Create(object a, object b, object c)

Parameters

a object

The first message value.

b object

The second message value.

c object

The third message value.

Returns

CommandSyntaxException

The command syntax exception.

CreateWithContext(IImmutableStringReader, object, object, object)

Creates an exception at the reader’s current cursor.

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

Parameters

reader IImmutableStringReader

The source and cursor to capture.

a object

The first message value.

b object

The second message value.

c object

The third message value.

Returns

CommandSyntaxException

The contextual exception.