Flatten NetworkException

This commit is contained in:
Karlatemp 2021-07-18 23:08:22 +08:00
parent 2730c80d2d
commit 6ab2d7e4c0

View File

@ -9,9 +9,21 @@
package net.mamoe.mirai.internal.network.handler.selector package net.mamoe.mirai.internal.network.handler.selector
internal abstract class NetworkException( internal abstract class NetworkException : Exception {
/** /**
* If true, the selector may recover the network handler by some means. * If true, the selector may recover the network handler by some means.
*/ */
val recoverable: Boolean, val recoverable: Boolean
) : Exception()
constructor(recoverable: Boolean) : super() {
this.recoverable = recoverable
}
constructor(message: String, recoverable: Boolean) : super(message) {
this.recoverable = recoverable
}
constructor(message: String, cause: Throwable?, recoverable: Boolean) : super(message, cause) {
this.recoverable = recoverable
}
}