java.net
Class SocketException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BindException, ConnectException, NoRouteToHostException, PortUnreachableException
public class SocketException
- extends IOException
This exception indicates that a generic error occurred related to an
operation on a socket. Check the descriptive message (if any) for
details on the nature of this error
- See Also:
- Serialized Form
Constructor Summary |
SocketException()
Create a new instance without a descriptive error message. |
SocketException(String message)
Create a new instance with a descriptive error message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
SocketException
public SocketException()
- Create a new instance without a descriptive error message.
SocketException
public SocketException(String message)
- Create a new instance with a descriptive error message.
- Parameters:
message
- a message describing the error that occurred