public class AddressException extends ParseException
| Modifier and Type | Field and Description | 
|---|---|
| protected int | posThe index in the string where the error occurred, or -1 if not known. | 
| protected String | refThe string being parsed. | 
| Constructor and Description | 
|---|
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
getCause, getNextException, setNextExceptionaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected String ref
protected int pos
public AddressException()
public AddressException(String s)
s - the detail messagepublic AddressException(String s, String ref)
s - the detail messagepublic String getRef()
public int getPos()
public String toString()
MessagingExceptiontoString in class MessagingExceptionCopyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.