mirror of
https://github.com/czp3009/bilibili-api.git
synced 2025-02-19 20:50:28 +08:00
允许外部代码获取响应体
This commit is contained in:
parent
17ce452782
commit
9e7f6a4830
@ -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)
|
Loading…
Reference in New Issue
Block a user