org.subethamail.smtp
Class RejectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.subethamail.smtp.RejectException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DropConnectionException

public class RejectException
extends java.lang.RuntimeException

Thrown to reject an SMTP command with a specific code.

Author:
Jeff Schnitzer
See Also:
Serialized Form

Constructor Summary
RejectException()
           
RejectException(int code, java.lang.String message)
           
RejectException(java.lang.String message)
           
 
Method Summary
 int getCode()
           
 java.lang.String getErrorResponse()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RejectException

public RejectException()

RejectException

public RejectException(java.lang.String message)

RejectException

public RejectException(int code,
                       java.lang.String message)
Method Detail

getCode

public int getCode()

getErrorResponse

public java.lang.String getErrorResponse()


Copyright © 2006-2011. All Rights Reserved.