Remove MPP EventCancelledException

This commit is contained in:
Him188 2020-04-22 18:42:26 +08:00
parent 3545482034
commit 72fb82c01f
2 changed files with 5 additions and 17 deletions

View File

@ -34,11 +34,11 @@ import kotlin.jvm.JvmSynthetic
@Suppress("unused")
expect class EventCancelledException : RuntimeException {
constructor()
constructor(message: String?)
constructor(message: String?, cause: Throwable?)
constructor(cause: Throwable?)
class EventCancelledException : RuntimeException {
constructor() : super()
constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(cause: Throwable?) : super(cause)
}
// note: 若你使用 IntelliJ IDEA, 按 alt + 7 可打开结构

View File

@ -1,12 +0,0 @@
package net.mamoe.mirai.event.events
// 不要删除多平台结构.
// 否则在 Java 中这个 class 不会被认为是 java.lang.RuntimeException (Kotlin bug)
@Suppress("unused")
actual class EventCancelledException : RuntimeException {
actual constructor() : super()
actual constructor(message: String?) : super(message)
actual constructor(message: String?, cause: Throwable?) : super(message, cause)
actual constructor(cause: Throwable?) : super(cause)
}