index.md 2.4 KB

net / com.drake.net.exception / NetException

NetException

open class NetException :IOException

Net网络异常

Parameters

request - 请求信息

info - 异常信息

Constructors

Name Summary
<init> Net网络异常NetException(request: Request, info:String? = null, cause:Throwable? = null)

Properties

Name Summary
info 异常信息val info:String?
request 请求信息val request: Request

Functions

Name Summary
getLocalizedMessage open fun getLocalizedMessage():String?

Inheritors

Name Summary
ConvertException 转换数据异常class ConvertException :NetException
DownloadFileException 下载文件异常class DownloadFileException :NetException
NetConnectException class NetConnectException :NetException
NetSocketTimeoutException class NetSocketTimeoutException :NetException
NetUnknownHostException class NetUnknownHostException :NetException
NoCacheException class NoCacheException :NetException
RequestParamsException 400 - 499 客户端请求异常class RequestParamsException :NetException
ResponseException 如果返回200但是返回数据不符合业务要求可以抛出该异常class ResponseException :NetException
ServerResponseException = 500 服务器异常class ServerResponseException :NetException