Commit 72fb82c0 authored by Him188's avatar Him188

Remove MPP EventCancelledException

parent 35454820
...@@ -34,11 +34,11 @@ import kotlin.jvm.JvmSynthetic ...@@ -34,11 +34,11 @@ import kotlin.jvm.JvmSynthetic
@Suppress("unused") @Suppress("unused")
expect class EventCancelledException : RuntimeException { class EventCancelledException : RuntimeException {
constructor() constructor() : super()
constructor(message: String?) constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(cause: Throwable?) constructor(cause: Throwable?) : super(cause)
} }
// note: 若你使用 IntelliJ IDEA, 按 alt + 7 可打开结构 // note: 若你使用 IntelliJ IDEA, 按 alt + 7 可打开结构
......
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)
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment