Package mireka.smtp
Class SendException
- Object
-
- Throwable
-
- Exception
-
- mireka.smtp.SendException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MxLookupException,RemoteMtaErrorResponseException
public class SendException extends ExceptionSignals an error occurred while attempting to transmit a mail to a remote domain. Typically the remote system cannot be found in the DNS or it rejects the mail.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.DatefailureDate
-
Constructor Summary
Constructors Constructor Description SendException(String message, Throwable e, EnhancedStatus status)SendException(String message, EnhancedStatus status)SendException(Throwable e, EnhancedStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnhancedStatuserrorStatus()StringgetLogId()voidinitLogId(String logId)It must be called if this exception gets logged.
-
-
-
Constructor Detail
-
SendException
public SendException(String message, EnhancedStatus status)
-
SendException
public SendException(Throwable e, EnhancedStatus status)
-
SendException
public SendException(String message, Throwable e, EnhancedStatus status)
-
-
Method Detail
-
errorStatus
public EnhancedStatus errorStatus()
-
initLogId
public void initLogId(String logId)
It must be called if this exception gets logged. In theory Log-ID should be set in the constructor if the cause was already logged. This never happens, first of all because the logging framework doesn't know such term as Log-ID.
-
getLogId
public String getLogId()
-
-