IllegalCommandArgumentException

open class IllegalCommandArgumentException @JvmOverloads constructor(message: String, cause: Throwable?) : IllegalArgumentException

在处理参数时遇到的 正常 错误. 如参数不符合规范, 参数值越界等.

message 将会发送给指令调用方.

如果指令调用方是 ConsoleCommandSender, 还会将 cause, suppressedExceptions 发送给 ConsoleCommandSender (如果存在)

See also

Constructors

IllegalCommandArgumentException
Link copied to clipboard
fun IllegalCommandArgumentException(message: String, cause: Throwable? = null)

Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(p0: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

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

Inheritors

CommandArgumentParserException
Link copied to clipboard