QQGuildApiException

QQ频道API请求过程中出现的异常

Inheritors

Constructors

Link copied to clipboard
constructor(value: Int, description: String)
constructor(info: ErrInfo?, value: Int, description: String)
constructor(value: Int, description: String, message: String)
constructor(info: ErrInfo?, value: Int, description: String, message: String = ": ")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

Inherited properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val message: String?

Inherited functions

Link copied to clipboard
inline fun <T> QQGuildApiException.ifNotFoundThen(throwCopy: Boolean = true, value: () -> T): T

如果 QQGuildApiException.isNotFoundtrue, 得到null,否则抛出此异常

Link copied to clipboard
inline fun QQGuildApiException.ifNotFoundThenNoSuch(throwCopy: Boolean = true, value: () -> String): Nothing

如果 QQGuildApiException.isNotFoundtrue, 得到null,否则抛出此异常

Link copied to clipboard
inline fun <T> QQGuildApiException.ifNotFoundThenNull(throwCopy: Boolean = true): T?

如果 QQGuildApiException.isNotFoundtrue, 得到null,否则抛出此异常