ServerResponseException

class ServerResponseException(response: Response, message: String?, cause: Throwable?, tag: Any?) : HttpResponseException

= 500 服务器异常

Parameters

response

响应信息

message

错误描述信息

cause

错误原因

tag

可携带任意对象, 一般用于在转换器/拦截器中添加然后传递给错误处理器去使用判断

Constructors

ServerResponseException
Link copied to clipboard
fun ServerResponseException(response: Response, message: String? = null, cause: Throwable? = null, tag: Any? = null)
响应信息

Properties

tag
Link copied to clipboard
var tag: Any? = null
可携带任意对象, 一般用于在转换器/拦截器中添加然后传递给错误处理器去使用判断