public static enum SMTPException.EnhancedStatus extends Enum<SMTPException.EnhancedStatus>
See: https://datatracker.ietf.org/doc/html/rfc3463#section-3
Enum Constant and Description |
---|
OTHER_ADDRESS
x.1.x for Address Status errors
|
OTHER_MAIL_DELIVERY
x.5.x for Mail Delivery Protocol errors
|
OTHER_MAIL_MESSAGE
x.6.x for Message Content or Message Media errors
|
OTHER_MAIL_SYSTEM
x.3.x for Mail System errors
|
OTHER_MAILBOX
x.2.x for Mailbox Status errors
|
OTHER_NETWORK
x.4.x for Network and Routing errors
|
OTHER_SECURITY
x.7.x for Security or Policy errors
|
OTHER_UNDEFINED
x.0.x for Undefined errors
|
OTHER_UNKNOWN
Anything else is unknown, like failures happen before knowing the capabilities or smtp server reply maliciously.
|
Modifier and Type | Method and Description |
---|---|
int |
getDetail()
Gets detail number of the EnhancedStatus.
|
int |
getSubject()
Gets the subject of the EnhancedStatus.
|
static SMTPException.EnhancedStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SMTPException.EnhancedStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SMTPException.EnhancedStatus OTHER_UNDEFINED
public static final SMTPException.EnhancedStatus OTHER_ADDRESS
public static final SMTPException.EnhancedStatus OTHER_MAILBOX
public static final SMTPException.EnhancedStatus OTHER_MAIL_SYSTEM
public static final SMTPException.EnhancedStatus OTHER_NETWORK
public static final SMTPException.EnhancedStatus OTHER_MAIL_DELIVERY
public static final SMTPException.EnhancedStatus OTHER_MAIL_MESSAGE
public static final SMTPException.EnhancedStatus OTHER_SECURITY
public static final SMTPException.EnhancedStatus OTHER_UNKNOWN
public static SMTPException.EnhancedStatus[] values()
for (SMTPException.EnhancedStatus c : SMTPException.EnhancedStatus.values()) System.out.println(c);
public static SMTPException.EnhancedStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getSubject()
public int getDetail()
Copyright © 2023 Eclipse. All rights reserved.