public class SMTPException
extends io.vertx.core.impl.NoStackTraceThrowable
Modifier and Type | Class and Description |
---|---|
static class |
SMTPException.EnhancedStatus
The Enhanced Status codes.
|
Constructor and Description |
---|
SMTPException(String message,
int replyCode,
List<String> replyMessages,
boolean supportEnhancementStatusCode)
Constructor of SMTPException.
|
Modifier and Type | Method and Description |
---|---|
SMTPException.EnhancedStatus |
getEnhancedStatus()
EnhancedStatus of the exception.
|
int |
getReplyCode()
Gets the SMTP reply status code.
|
String |
getReplyMessage()
Gets the SMTP reply message.
|
List<String> |
getReplyMessages()
Gets the SMTP reply messages.
|
boolean |
isPermanent()
Checks if it is a permanent failure, that the reply status code
>= 500 |
boolean |
isTransient()
Checks if it is a transient failure, that the reply status code
>= 400 and < 500 |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SMTPException(String message, int replyCode, List<String> replyMessages, boolean supportEnhancementStatusCode)
message
- the informative message prepending the reply messagesreplyCode
- the SMTP reply codesupportEnhancementStatusCode
- if ENHANCEDSTATUSCODES
is supported or notreplyMessages
- the SMTP reply messagespublic int getReplyCode()
public List<String> getReplyMessages()
\n
public String getReplyMessage()
public boolean isPermanent()
>=
500public boolean isTransient()
>=
400 and <
500public SMTPException.EnhancedStatus getEnhancedStatus()
Copyright © 2023 Eclipse. All rights reserved.