Module java.base
Package java.net

Class PortUnreachableException

  • All Implemented Interfaces:
    Serializable


    public class PortUnreachableException
    extends SocketException
    Signals that an ICMP Port Unreachable message has been received on a connected datagram.
    Since:
    1.4
    See Also:
    Serialized Form
    • Constructor Detail

      • PortUnreachableException

        public PortUnreachableException​(String msg)
        Constructs a new PortUnreachableException with a detail message.
        Parameters:
        msg - the detail message
      • PortUnreachableException

        public PortUnreachableException​()
        Construct a new PortUnreachableException with no detailed message.