# Class MalformedURLException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.io.MalformedURLException

public class MalformedURLException extends java.io.IOException

Thrown when attempting to create a URL that doesn't conform to specification.

##### See also

- URL

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MalformedURLException()`
  Creates a new exception.
  `MalformedURLException(String message)`
  Creates a new exception with a message.

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MalformedURLException

    public MalformedURLException()
    Creates a new exception.

  - ### MalformedURLException

    public MalformedURLException(String message)

    Creates a new exception with a message.

    ###### Parameters

    - `message`: The message for this exception