Added in API level 1

SocketException

open class SocketException : IOException
BindException

Signals that an error occurred while attempting to bind a socket to a local address and port.

ConnectException

Signals that an error occurred while attempting to connect a socket to a remote address and port.

NoRouteToHostException

Signals that an error occurred while attempting to connect a socket to a remote address and port.

PortUnreachableException

Signals that an ICMP Port Unreachable message has been received on a connected datagram.

Thrown to indicate that there is an error creating or accessing a Socket.

Summary

Public constructors

Constructs a new SocketException with no detail message.

Constructs a new SocketException with the specified detail message.

Public constructors

SocketException

Added in API level 1
SocketException()

Constructs a new SocketException with no detail message.

SocketException

Added in API level 1
SocketException(msg: String!)

Constructs a new SocketException with the specified detail message.

Parameters
msg String!: the detail message.