UnknownHostException  |  API reference  |  Android Developers (original) (raw)

open class UnknownHostException : IOException

kotlin.Any
kotlin.Throwable
java.lang.Exception
java.io.IOException

Thrown to indicate that the IP address of a host could not be determined.

Summary

Public constructors
UnknownHostException() Constructs a new UnknownHostException with no detail message.
UnknownHostException(message: String!) Constructs a new UnknownHostException with the specified detail message.

Public constructors

UnknownHostException

UnknownHostException()

Constructs a new UnknownHostException with no detail message.

UnknownHostException

UnknownHostException(message: String!)

Constructs a new UnknownHostException with the specified detail message.

Parameters
message String!: the detail message.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.