mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +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
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user