Example usage for javax.mail.internet AddressException AddressException

List of usage examples for javax.mail.internet AddressException AddressException

Introduction

In this page you can find the example usage for javax.mail.internet AddressException AddressException.

Prototype

public AddressException() 

Source Link

Document

Constructs an AddressException with no detail message.

Usage

From source file:com.liferay.petra.mail.InternetAddressUtil.java

public static void validateAddresses(Address[] addresses) throws AddressException {

    if (addresses == null) {
        throw new AddressException();
    }//ww w. j a v  a  2  s .c om

    for (Address internetAddress : addresses) {
        validateAddress(internetAddress);
    }
}