mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:20:19 +08:00
Require not null message for IllegalCommandArgumentException
This commit is contained in:
parent
0e88990b13
commit
32eb098f78
@ -23,9 +23,7 @@ import net.mamoe.mirai.console.command.descriptor.CommandArgumentParserException
|
|||||||
*
|
*
|
||||||
* @see CommandArgumentParserException
|
* @see CommandArgumentParserException
|
||||||
*/
|
*/
|
||||||
public open class IllegalCommandArgumentException : IllegalArgumentException {
|
public open class IllegalCommandArgumentException @JvmOverloads constructor(
|
||||||
public constructor() : super()
|
message: String,
|
||||||
public constructor(message: String?) : super(message)
|
cause: Throwable? = null,
|
||||||
public constructor(message: String?, cause: Throwable?) : super(message, cause)
|
) : IllegalArgumentException(message, cause)
|
||||||
public constructor(cause: Throwable?) : super(cause)
|
|
||||||
}
|
|
@ -58,9 +58,7 @@ public open class CommandDeclarationException : RuntimeException {
|
|||||||
* @see CommandValueArgumentParser
|
* @see CommandValueArgumentParser
|
||||||
* @see AbstractCommandValueArgumentParser.illegalArgument
|
* @see AbstractCommandValueArgumentParser.illegalArgument
|
||||||
*/
|
*/
|
||||||
public class CommandArgumentParserException : IllegalCommandArgumentException {
|
public class CommandArgumentParserException @JvmOverloads constructor(
|
||||||
public constructor() : super()
|
message: String,
|
||||||
public constructor(message: String?) : super(message)
|
cause: Throwable? = null,
|
||||||
public constructor(message: String?, cause: Throwable?) : super(message, cause)
|
) : IllegalCommandArgumentException(message, cause)
|
||||||
public constructor(cause: Throwable?) : super(cause)
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user