Enum InboundEmailRejectionSender.Error
- java.lang.Object
-
- java.lang.Enum<InboundEmailRejectionSender.Error>
-
- com.google.gerrit.server.mail.send.InboundEmailRejectionSender.Error
-
- All Implemented Interfaces:
Serializable
,Comparable<InboundEmailRejectionSender.Error>
- Enclosing class:
- InboundEmailRejectionSender
public static enum InboundEmailRejectionSender.Error extends Enum<InboundEmailRejectionSender.Error>
Used by the templating system to determine what error message should be sent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMENT_REJECTED
INACTIVE_ACCOUNT
INTERNAL_EXCEPTION
PARSING_ERROR
UNKNOWN_ACCOUNT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InboundEmailRejectionSender.Error
valueOf(String name)
Returns the enum constant of this type with the specified name.static InboundEmailRejectionSender.Error[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARSING_ERROR
public static final InboundEmailRejectionSender.Error PARSING_ERROR
-
INACTIVE_ACCOUNT
public static final InboundEmailRejectionSender.Error INACTIVE_ACCOUNT
-
UNKNOWN_ACCOUNT
public static final InboundEmailRejectionSender.Error UNKNOWN_ACCOUNT
-
INTERNAL_EXCEPTION
public static final InboundEmailRejectionSender.Error INTERNAL_EXCEPTION
-
COMMENT_REJECTED
public static final InboundEmailRejectionSender.Error COMMENT_REJECTED
-
-
Method Detail
-
values
public static InboundEmailRejectionSender.Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InboundEmailRejectionSender.Error c : InboundEmailRejectionSender.Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InboundEmailRejectionSender.Error valueOf(String name)
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
-
-