# Class MalformedURLException

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

All Implemented Interfaces:
  `Serializable`

public class MalformedURLException extends IOException

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

##### See also

- URL

See Also:
  - Serialized Form

- ## 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, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, 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