Package java.net Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class SocketException

Constructors

public  class  java.net.SocketException
    extends  java.io.IOException  
{
        // Constructors
    public SocketException();	
    public SocketException(String  msg);	
}

Thrown to indicate that some error occurred while attempting to use a socket.


Constructors


SocketException

public SocketException() 

Constructs a new SocketException with no detail message.


SocketException

public SocketException(String  msg) 

Constructs a new SocketException with the specified detail message.

ParameterDescription
msg the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.