java.net
Class UnknownServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.net.UnknownServiceException
All Implemented Interfaces:
Serializable

public class UnknownServiceException
extends IOException

Contrary to what you might think, this does not indicate that the TCP/IP service name specified was invalid. Instead it indicates that the MIME type returned from a URL could not be determined or that an attempt was made to write to a read-only URL.

See Also:
Serialized Form

Constructor Summary
UnknownServiceException()
          Create a new instance without a descriptive error message.
UnknownServiceException(String message)
          Create a new instance with a descriptive error message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownServiceException

public UnknownServiceException()
Create a new instance without a descriptive error message.


UnknownServiceException

public UnknownServiceException(String message)
Create a new instance with a descriptive error message.

Parameters:
message - a message describing the error that occurred