mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
Flatten NetworkException
This commit is contained in:
parent
2730c80d2d
commit
6ab2d7e4c0
@ -9,9 +9,21 @@
|
||||
|
||||
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.
|
||||
*/
|
||||
val recoverable: Boolean,
|
||||
) : Exception()
|
||||
val recoverable: Boolean
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user