CommandExceptionBuilder

open class CommandExceptionBuilder(detailErrorMessage: String?, input: String?, cursor: Int)

A builder for creating command exception messages with contextual information. This builder constructs user-friendly error messages for commands, optionally including a specified prefix, detailed error messages, and contextual information about the command input.

Parameters

detailErrorMessage

An optional detailed error message to include in the output.

input

The command input string being processed.

cursor

The position within the input where the error occurred.

Constructors

Link copied to clipboard
constructor(detailErrorMessage: String?, input: String?, cursor: Int)

Creates an instance of CommandExceptionBuilder with the specified parameters.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun build(): Component

Builds the command exception message with the default prefix (Colors.PREFIX).

open fun build(prefix: Component?): Component

Builds the command exception message with the given prefix.