PortUnreachableException

  • PortUnreachableException signals that an ICMP Port Unreachable message has been received on a connected datagram.

  • It is a subclass of SocketException and provides two constructors: one with a detailed message and one without.

  • PortUnreachableException inherits methods from Throwable for handling exceptions and stack traces.

  • It also inherits methods from Object for basic object operations like cloning, comparison, and waiting.

public class PortUnreachableException extends SocketException

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

Public Constructor Summary

PortUnreachableException(String msg)
Constructs a new PortUnreachableException with a detail message.
PortUnreachableException()
Construct a new PortUnreachableException with no detailed message.

Inherited Method Summary

Public Constructors

public PortUnreachableException (String msg)

Constructs a new PortUnreachableException with a detail message.

Parameters
msg the detail message

public PortUnreachableException ()

Construct a new PortUnreachableException with no detailed message.