Package java.net

Class 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 Detail

      • UnknownServiceException

        public UnknownServiceException()
        Constructs a new instance.
      • UnknownServiceException

        public UnknownServiceException​(String detailMessage)
        Constructs a new instance with the given detail message.
      • UnknownServiceException

        public UnknownServiceException​(String detailMessage,
                                       Throwable cause)
        Constructs a new instance with given detail message and cause.