AddressException
class in package klyn.mails

    public class AddressException extends MessagingException:

Object
└ Exception
└ MessagingException
└ AddressException

Raised when an email address is malformed.

    import klyn.mails

    try:
    InternetAddress("invalid")
    catch ex as AddressException:
    print(ex.message)

Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | AddressException `AddressException(message as String = "Invalid email address"):` | Creates an address exception.

Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml