NetException

open class NetException(request: Request, message: String?, cause: Throwable?) : IOException

表示为Net发生的网络异常 在转换器com.drake.net.convert.NetConverter中抛出的异常如果没有继承该类都会被视为数据转换异常ConvertException, 该类一般用于自定义异常

Parameters

request

请求信息

message

错误描述信息

cause

错误原因

Constructors

NetException
Link copied to clipboard
fun NetException(request: Request, message: String? = null, cause: Throwable? = null)
请求信息

Functions

getLocalizedMessage
Link copied to clipboard
open override fun getLocalizedMessage(): String?

Properties

occurred
Link copied to clipboard
var occurred: String
request
Link copied to clipboard
open val request: Request
请求信息

Inheritors

HttpFailureException
Link copied to clipboard
HttpResponseException
Link copied to clipboard
NoCacheException
Link copied to clipboard