
org.subethamail.smtp.RejectException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subethasmtp-smtp Show documentation
Show all versions of subethasmtp-smtp Show documentation
A multithreaded standalone SMTP mail server implementation.
The newest version!
/*
* $Id: RejectException.java 87 2006-10-01 07:56:08Z lhoriman $
* $Source: /cvsroot/Similarity4/src/java/com/similarity/mbean/BindStatisticsManagerMBean.java,v $
*/
package org.subethamail.smtp;
/**
* Thrown to reject an SMTP command with a specific code.
*
* @author Jeff Schnitzer
*/
@SuppressWarnings("serial")
public class RejectException extends Exception
{
int code;
/** */
public RejectException()
{
this(554, "Transaction failed");
}
/** */
public RejectException(int code, String message)
{
super(code + " " + message);
this.code = code;
}
/** */
public int getCode()
{
return this.code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy