ApiException

class ApiException(val statusCode: Int, message: String, val errorCode: String? = null, cause: Throwable? = null) : FursuitTvSdkException

API 调用异常,表示服务器返回了 4xx/5xx 业务错误。

Parameters

statusCode

HTTP 状态码

message

服务器返回的错误消息

errorCode

业务错误代码(可选)

cause

底层异常原因,可能为 null

Constructors

Link copied to clipboard
constructor(statusCode: Int, message: String, errorCode: String? = null, cause: Throwable? = null)

Properties

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