允许外部代码获取响应体

This commit is contained in:
yiweigang 2020-01-24 14:13:47 +08:00
parent 17ce452782
commit 9e7f6a4830

View File

@ -7,5 +7,5 @@ import java.io.IOException
* 当服务器返回的 code 不等于 0 时抛出
*/
class BilibiliApiException(
commonResponse: CommonResponse
) : IOException(commonResponse.message?.takeIf { it.isNotEmpty() } ?: commonResponse.msg)
val commonResponse: CommonResponse
) : IOException(commonResponse.message?.takeIf { it.isNotEmpty() } ?: commonResponse.msg)