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
Value is android.net.DnsResolver#ERROR_PARSE, or android.net.DnsResolver#ERROR_SYSTEM

Public constructors

DnsException

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

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