All Downloads are FREE. Search and download functionalities are using the official Maven repository.

command.IllegalCommandArgumentException.kt Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
/*
 * Copyright 2019-2020 Mamoe Technologies and contributors.
 *
 * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
 * Use of this source code is governed by the GNU AFFERO GENERAL PUBLIC LICENSE version 3 license that can be found through the following link.
 *
 * https://github.com/mamoe/mirai/blob/master/LICENSE
 */

@file:Suppress("unused")

package net.mamoe.mirai.console.command

import net.mamoe.mirai.console.command.descriptor.CommandArgumentParserException

/**
 * 在处理参数时遇到的 _正常_ 错误. 如参数不符合规范, 参数值越界等.
 *
 * [message] 将会发送给指令调用方.
 *
 * 如果指令调用方是 [ConsoleCommandSender],
 * 还会将 [cause], [suppressedExceptions] 发送给 [ConsoleCommandSender] (如果存在)
 *
 * @see CommandArgumentParserException
 */
public open class IllegalCommandArgumentException @JvmOverloads constructor(
    message: String,
    cause: Throwable? = null,
) : IllegalArgumentException(message, cause)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy