PortUnreachableException (Java SE 21 & JDK 21)
- 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:
-
Constructor Summary
Constructors
Construct a new
PortUnreachableExceptionwith no detailed message.Constructs a new
PortUnreachableExceptionwith a detail message. -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PortUnreachableException
public PortUnreachableException
(String msg) Constructs a new
PortUnreachableExceptionwith a detail message.- Parameters:
msg- the detail message
-
PortUnreachableException
public PortUnreachableException()
Construct a new
PortUnreachableExceptionwith no detailed message.
-