Name

AddressException

Synopsis

This exception is thrown when an InternetAddress is badly formatted.

                  Exceptions
public class AddressException extends javax.mail.internet.ParseException {
// Public Constructors
   public AddressException();  
   public AddressException( String s);  
   public AddressException( String s, String ref);  
   public AddressException( String s, String ref, int pos);  
// Public Instance Methods
   public int getPos();                                          // default:-1
   public String getRef();                                       // default:null
                  // Public Methods Overriding Throwable
   public String toString();  
// Protected Instance Fields
   protected int pos;  
   protected String ref;  
}

Thrown By

InternetAddress.{InternetAddress(), parse()}, NewsAddress.parse()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.