JavaScript is disabled on your browser.
javax.mail.internet

Class AddressException

  • All Implemented Interfaces:
    java.io.Serializable


    public class AddressException
    extends ParseException 
    An exception thrown when an incorrectly formatted address is encountered.
    See Also:
    Serialized Form
    • Field Summary

      Fields
      Modifier and Type Field and Description
      protected int pos
      The index in ref where the error occurred, or -1 if not known.
      protected java.lang.String ref
      The address(es) being parsed.
    • Constructor Summary

      Constructors
      Constructor and Description
      AddressException ()
      Constructor with no detail message.
      AddressException (java.lang.String s)
      Constructor with the specified detail message.
      AddressException (java.lang.String s, java.lang.String ref)
      Constructor with the specified detail message and address being parsed.
      AddressException (java.lang.String s, java.lang.String ref, int pos)
      Constructor with the specified detail message and address being parsed.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      int getPos ()
      Returns the position within ref where the error was detected, or -1 if ref is null.
      java.lang.String getRef ()
      Returns the address(es) being parsed when the error was detected.
      java.lang.String toString ()
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ref

        protected java.lang.String ref
        The address(es) being parsed.
      • pos

        protected int pos
        The index in ref where the error occurred, or -1 if not known.
    • Constructor Detail

      • AddressException

        public AddressException()
        Constructor with no detail message.
      • AddressException

        public AddressException(java.lang.String s)
        Constructor with the specified detail message.
        Parameters:
        s - the detail message
      • AddressException

        public AddressException(java.lang.String s,
         java.lang.String ref)
        Constructor with the specified detail message and address being parsed.
        Parameters:
        s - the detail message
        ref - the address being parsed
      • AddressException

        public AddressException(java.lang.String s,
         java.lang.String ref,
         int pos)
        Constructor with the specified detail message and address being parsed.
        Parameters:
        s - the detail message
        ref - the address being parsed
        pos - the index in ref where the error occurred
    • Method Detail

      • getRef

        public java.lang.String getRef()
        Returns the address(es) being parsed when the error was detected.
      • getPos

        public int getPos()
        Returns the position within ref where the error was detected, or -1 if ref is null.

AltStyle によって変換されたページ (->オリジナル) /