Enum SMTPException.EnhancedStatus
- All Implemented Interfaces:
Serializable, Comparable<SMTPException.EnhancedStatus>
- Enclosing class:
SMTPException
The Enhanced Status codes.
See: https://datatracker.ietf.org/doc/html/rfc3463#section-3
- Author:
- Lin Gao
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionx.1.x for Address Status errorsx.5.x for Mail Delivery Protocol errorsx.6.x for Message Content or Message Media errorsx.3.x for Mail System errorsx.2.x for Mailbox Status errorsx.4.x for Network and Routing errorsx.7.x for Security or Policy errorsx.0.x for Undefined errorsAnything else is unknown, like failures happen before knowing the capabilities or smtp server reply maliciously. -
Method Summary
Modifier and TypeMethodDescriptionintGets detail number of the EnhancedStatus.intGets the subject of the EnhancedStatus.static SMTPException.EnhancedStatusReturns 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.
-
Enum Constant Details
-
OTHER_UNDEFINED
x.0.x for Undefined errors -
OTHER_ADDRESS
x.1.x for Address Status errors -
OTHER_MAILBOX
x.2.x for Mailbox Status errors -
OTHER_MAIL_SYSTEM
x.3.x for Mail System errors -
OTHER_NETWORK
x.4.x for Network and Routing 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_SECURITY
x.7.x for Security or Policy errors -
OTHER_UNKNOWN
Anything else is unknown, like failures happen before knowing the capabilities or smtp server reply maliciously.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getSubject
public int getSubject()Gets the subject of the EnhancedStatus.- Returns:
- the subject of the EnhancedStatus
-
getDetail
public int getDetail()Gets detail number of the EnhancedStatus.- Returns:
- the detail of the EnhancedStatus
-