Package 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
Is thrown if no appropriate
ContentHandler could be found for a
particular service requested by the URL connection. This could be happened if
there is an invalid MIME type or the application wants to send data over a
read-only connection.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnknownServiceException()Constructs a new instance.UnknownServiceException(String detailMessage)Constructs a new instance with the given detail message.UnknownServiceException(String detailMessage, Throwable cause)Constructs a new instance with given detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownServiceException
public UnknownServiceException()Constructs a new instance. -
UnknownServiceException
Constructs a new instance with the given detail message. -
UnknownServiceException
Constructs a new instance with given detail message and cause.
-