java.net
Class UnknownServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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