public class

AddressException

extends ParseException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.code.javax.mail.MessagingException
         ↳ com.google.code.javax.mail.internet.ParseException
           ↳ com.google.code.javax.mail.internet.AddressException

Class Overview

The exception thrown when a wrongly formatted address is encountered.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class com.google.code.javax.mail.internet.ParseException
From class com.google.code.javax.mail.MessagingException
From class java.lang.Exception
From class java.lang.Throwable
Fields
protected int pos The index in the string where the error occurred, or -1 if not known.
protected String ref The string being parsed.
[Expand]
Inherited Fields
From class com.google.code.javax.mail.MessagingException
From class java.lang.Throwable
Public Constructors
AddressException()
Constructs an AddressException with no detail message.
AddressException(String s)
Constructs an AddressException with the specified detail message.
AddressException(String s, String ref)
Constructs an AddressException with the specified detail message and reference info.
AddressException(String s, String ref, int pos)
Constructs an AddressException with the specified detail message and reference info.
Public Methods
int getPos()
Get the position with the reference string where the error was detected (-1 if not relevant).
String getRef()
Get the string that was being parsed when the error was detected (null if not relevant).
String toString()
Override toString method to provide information on nested exceptions.
[Expand]
Inherited Methods
From class com.google.code.javax.mail.MessagingException
From class java.lang.Throwable
From class java.lang.Object

Constants

private static final long serialVersionUID

Constant Value: 9134583443539323120 (0x7ec48f3eab5368f0)

Fields

protected int pos

The index in the string where the error occurred, or -1 if not known.

protected String ref

The string being parsed.

Public Constructors

public AddressException ()

Constructs an AddressException with no detail message.

public AddressException (String s)

Constructs an AddressException with the specified detail message.

Parameters
s The detail message

public AddressException (String s, String ref)

Constructs an AddressException with the specified detail message and reference info.

Parameters
s The detail message
ref

public AddressException (String s, String ref, int pos)

Constructs an AddressException with the specified detail message and reference info.

Parameters
s The detail message
ref
pos

Public Methods

public int getPos ()

Get the position with the reference string where the error was detected (-1 if not relevant).

public String getRef ()

Get the string that was being parsed when the error was detected (null if not relevant).

public String toString ()

Override toString method to provide information on nested exceptions.