Added in API level 29
DnsException
class DnsException : Exception
kotlin.Any | |||
↳ | kotlin.Throwable | ||
↳ | java.lang.Exception | ||
↳ | android.net.DnsResolver.DnsException |
Class to represent DNS error
Summary
Public constructors | |
---|---|
DnsException(code: Int, cause: Throwable?) |
Properties | |
---|---|
Int |
DNS error code as one of the ERROR_* constants |
Public constructors
DnsException
Added in API level 33
DnsException(
code: Int,
cause: Throwable?)
Parameters | |
---|---|
code |
Int: Value is android.net.DnsResolver#ERROR_PARSE , or android.net.DnsResolver#ERROR_SYSTEM |
cause |
Throwable?: This value may be null . |
Properties
code
Added in API level 29
val code: Int
DNS error code as one of the ERROR_* constants
Value is android.net.DnsResolver#ERROR_PARSE
, or android.net.DnsResolver#ERROR_SYSTEM