MalformedURLException
classin packageklyn.net
public class MalformedURLException extends IOException:
└ MalformedURLException

Raised when a URL cannot be parsed.

import klyn.net

try URL("not-a-url")
catch err as MalformedURLException:
print(err.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public MalformedURLException
MalformedURLException(message as String = "Malformed URL"):
Creates a malformed-URL exception.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml