Package com. drake. net. exception
Types
ConvertException
Link copied to clipboard
class ConvertException(response: Response, message: String?, cause: Throwable?, tag: Any?) : HttpResponseException
Content copied to clipboard
DownloadFileException
Link copied to clipboard
class DownloadFileException(response: Response, message: String?, cause: Throwable?, tag: Any?) : HttpResponseException
Content copied to clipboard
HttpFailureException
Link copied to clipboard
open class HttpFailureException(request: Request, message: String?, cause: Throwable?) : NetException
Content copied to clipboard
HttpResponseException
Link copied to clipboard
open class HttpResponseException(response: Response, message: String?, cause: Throwable?) : NetException
Content copied to clipboard
NetCancellationException
Link copied to clipboard
class NetCancellationException(coroutineScope: CoroutineScope, message: String?) : CancellationException
Content copied to clipboard
NetConnectException
Link copied to clipboard
class NetConnectException(request: Request, message: String?, cause: Throwable?) : HttpFailureException
Content copied to clipboard
NetException
Link copied to clipboard
open class NetException(request: Request, message: String?, cause: Throwable?) : IOException
Content copied to clipboard
表示为Net发生的网络异常 在转换器com.drake.net.convert.NetConverter中抛出的异常如果没有继承该类都会被视为数据转换异常ConvertException, 该类一般用于自定义异常
NetSocketTimeoutException
Link copied to clipboard
class NetSocketTimeoutException(request: Request, message: String?, cause: Throwable?) : HttpFailureException
Content copied to clipboard
NetUnknownHostException
Link copied to clipboard
class NetUnknownHostException(request: Request, message: String?, cause: Throwable?) : HttpFailureException
Content copied to clipboard
NetworkingException
Link copied to clipboard
class NetworkingException(request: Request, message: String?, cause: Throwable?) : HttpFailureException
Content copied to clipboard
NoCacheException
Link copied to clipboard
class NoCacheException(request: Request, message: String?, cause: Throwable?) : NetException
Content copied to clipboard
读取缓存失败 仅当设置强制缓存模式com.drake.net.cache.CacheMode.READ和com.drake.net.cache.CacheMode.REQUEST_THEN_READ才会发生此异常
RequestParamsException
Link copied to clipboard
class RequestParamsException(response: Response, message: String?, cause: Throwable?, tag: Any?) : HttpResponseException
Content copied to clipboard
ResponseException
Link copied to clipboard
class ResponseException(response: Response, message: String?, cause: Throwable?, tag: Any?) : HttpResponseException
Content copied to clipboard
ServerResponseException
Link copied to clipboard
class ServerResponseException(response: Response, message: String?, cause: Throwable?, tag: Any?) : HttpResponseException
Content copied to clipboard
URLParseException
Link copied to clipboard
open class URLParseException(message: String?, cause: Throwable?) : Exception
Content copied to clipboard
Functions
NetCancellationException
Link copied to clipboard
fun CoroutineScope.NetCancellationException(message: String? = null): NetCancellationException
Content copied to clipboard