Package java.net

Class MalformedURLException

  • All Implemented Interfaces:
    Serializable

    public class MalformedURLException
    extends IOException
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
    See Also:
    URL, Serialized Form
    • Constructor Detail

      • MalformedURLException

        public MalformedURLException()
        Constructs a new instance.
      • MalformedURLException

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

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