AddressException
classin packageklyn.mails
public class AddressException extends MessagingException
└ AddressException

Raised when an email address is malformed.

import klyn.mails

try:
    InternetAddress("invalid")
catch ex as AddressException:
    print(ex.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public AddressException
AddressException(message as String = "Invalid email address")
Creates an address exception.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml