java.net
Class NoRouteToHostException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
java.net.NoRouteToHostException
- All Implemented Interfaces:
- Serializable
public class NoRouteToHostException
- extends SocketException
This exception indicates that there is no TCP/IP route to the requested
host. This is often due to a misconfigured routing table.
- Since:
- 1.1
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NoRouteToHostException
public NoRouteToHostException()
- Create an instance without a descriptive error message.
NoRouteToHostException
public NoRouteToHostException(String message)
- Create an instance with a descriptive error message, such as the text
from strerror(3).
- Parameters:
message
- a message describing the error that occurred