com.plexobject.mail
Class IllegalEmailException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.plexobject.mail.IllegalEmailException
All Implemented Interfaces:
java.io.Serializable

public class IllegalEmailException
extends java.lang.Exception
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static int ERROR_BLACKLIST
          Email address or host is in black list.
static int ERROR_COMM
          Error while communicating with mail server or DNS server
static int ERROR_HOST
          Host name is invalid or not found
static int ERROR_SYNTAX
          Syntax of email is incorrect
static int ERROR_VERIFY
          Email address does not exist
 
Method Summary
 java.lang.String getEmail()
          returns email that failed validation
 int getErrorCode()
          returns reason why email validation failed
 java.lang.Exception getNestedException()
          returns nested exception if exists or null
 void printStackTrace(java.io.PrintStream out)
           
 void printStackTrace(java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_SYNTAX

public static final int ERROR_SYNTAX
Syntax of email is incorrect

See Also:
Constant Field Values

ERROR_VERIFY

public static final int ERROR_VERIFY
Email address does not exist

See Also:
Constant Field Values

ERROR_BLACKLIST

public static final int ERROR_BLACKLIST
Email address or host is in black list.

See Also:
Constant Field Values

ERROR_HOST

public static final int ERROR_HOST
Host name is invalid or not found

See Also:
Constant Field Values

ERROR_COMM

public static final int ERROR_COMM
Error while communicating with mail server or DNS server

See Also:
Constant Field Values
Method Detail

getEmail

public java.lang.String getEmail()
returns email that failed validation


getErrorCode

public int getErrorCode()
returns reason why email validation failed


getNestedException

public java.lang.Exception getNestedException()
returns nested exception if exists or null


printStackTrace

public void printStackTrace(java.io.PrintStream out)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Overrides:
printStackTrace in class java.lang.Throwable