|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.jscape.inspect.InvalidEmailException
public class InvalidEmailException
InvalidEmailException is thrown when an email address is found to be invalid. At times, network related issues such as the inability to connect to a DNS or SMTP server during validation will cause an InvalidEmailException to be thrown.
Field Summary | |
---|---|
static int |
DENIED_DOMAIN_ERROR
Indicates email address contains a denied domain as defined in EmailInspector instance. |
static int |
INVALID_DOMAIN_ERROR
Indicates email address contains an invalid domain name. |
static int |
INVALID_MX_ERROR
Indicates error locating SMTP server for email address. |
static int |
INVALID_SYNTAX_ERROR
Indicates syntax error in email address. |
static int |
INVALID_USER_ERROR
Indicates invalid user portion of email address. |
static int |
IO_ERROR
Indicates I/O error communicating with DNS Nameserver or SMTP server. |
Constructor Summary | |
---|---|
InvalidEmailException(java.lang.String email,
int errorCode)
Exception thrown to handle an invalid email. |
|
InvalidEmailException(java.lang.String message,
java.lang.String email)
Creates exception with specified message string. |
|
InvalidEmailException(java.lang.String message,
java.lang.String email,
java.lang.Exception exception)
Creates exception with specified message String, email and base exception. |
Method Summary | |
---|---|
java.lang.String |
getEmail()
Gets the EmailAddress associated with this exception. |
int |
getErrorCode()
Gets error code associated with error. |
java.lang.Exception |
getException()
Gets source of this exception. |
java.lang.String |
getMessage()
Gets error message for this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int IO_ERROR
public static final int INVALID_SYNTAX_ERROR
public static final int DENIED_DOMAIN_ERROR
public static final int INVALID_DOMAIN_ERROR
public static final int INVALID_MX_ERROR
public static final int INVALID_USER_ERROR
Constructor Detail |
---|
public InvalidEmailException(java.lang.String message, java.lang.String email)
message
- the error messageemail
- the email addresspublic InvalidEmailException(java.lang.String message, java.lang.String email, java.lang.Exception exception)
message
- the error messageemail
- the email addressexception
- the exception which generated this exceptionpublic InvalidEmailException(java.lang.String email, int errorCode)
email
- the emailerrorCode
- the type of error encounteredMethod Detail |
---|
public java.lang.String getEmail()
public int getErrorCode()
IO_ERROR
,
INVALID_SYNTAX_ERROR
,
INVALID_DOMAIN_ERROR
,
DENIED_DOMAIN_ERROR
,
INVALID_MX_ERROR
,
INVALID_USER_ERROR
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Exception getException()
getException
in interface ExceptionWrapper
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |