ArgumentParsingException

open class ArgumentParsingException(val reason: Key, val argument: Argument<*>?, val arguments: Arguments, val parser: StringParser?) : DiscordRelayedException

Thrown when something happens during argument parsing.

Parameters

reason

Translation key representing the failure reason.

argument

Current Argument object, if any.

arguments

Arguments object for the command.

parser

Tokenizing string parser used for this parse attempt, if this was a chat command.

Constructors

Link copied to clipboard
constructor(other: ArgumentParsingException)
constructor(reason: Key, argument: Argument<*>?, arguments: Arguments, parser: StringParser?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override val message: String
Link copied to clipboard
Link copied to clipboard
open override val reason: Key

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String