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

love.forte.simbot.action.NotSupportActionException.kt Maven / Gradle / Ivy

There is a newer version: 3.0.0.preview.0.4
Show newest version
package love.forte.simbot.action


/**
 *
 * 不支持的行为异常。
 * 对于组件,如果一个行为不被支持(例如 [MuteAction] [DeleteAction])那么
 *
 * @author ForteScarlet
 */
public class NotSupportActionException : ActionException {
    public constructor() : super()
    public constructor(message: String?) : super(message)
    public constructor(message: String?, cause: Throwable?) : super(message, cause)
    public constructor(cause: Throwable?) : super(cause)
}

public inline fun actionNotSupportBecause(block: () -> String): Nothing = throw NotSupportActionException(block())




© 2015 - 2024 Weber Informatics LLC | Privacy Policy