1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-03-25 06:50:09 +08:00

Add Exceptions.kt

This commit is contained in:
Him188 2019-12-14 22:06:44 +08:00
parent 3414a77d86
commit 537c21452d

View File

@ -0,0 +1,20 @@
@file:Suppress("unused", "UNUSED_PARAMETER")
package net.mamoe.mirai.utils
/**
* 在获取 [Group] 对象等操作时可能出现的异常
*/
class GroupNotFoundException : Exception {
constructor()
constructor(message: String?)
constructor(message: String?, cause: Throwable?)
constructor(cause: Throwable?)
}
open class MiraiInternalException : Exception {
constructor()
constructor(message: String?)
constructor(message: String?, cause: Throwable?)
constructor(cause: Throwable?)
}