Enum InboundEmailRejectionSender.InboundEmailError
- java.lang.Object
-
- java.lang.Enum<InboundEmailRejectionSender.InboundEmailError>
-
- com.google.gerrit.server.mail.send.InboundEmailRejectionSender.InboundEmailError
-
- All Implemented Interfaces:
Serializable
,Comparable<InboundEmailRejectionSender.InboundEmailError>
- Enclosing class:
- InboundEmailRejectionSender
public static enum InboundEmailRejectionSender.InboundEmailError extends Enum<InboundEmailRejectionSender.InboundEmailError>
Used by the templating system to determine what error message should be sent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANGE_NOT_FOUND
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.InboundEmailError
valueOf(String name)
Returns the enum constant of this type with the specified name.static InboundEmailRejectionSender.InboundEmailError[]
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.InboundEmailError PARSING_ERROR
-
INACTIVE_ACCOUNT
public static final InboundEmailRejectionSender.InboundEmailError INACTIVE_ACCOUNT
-
UNKNOWN_ACCOUNT
public static final InboundEmailRejectionSender.InboundEmailError UNKNOWN_ACCOUNT
-
INTERNAL_EXCEPTION
public static final InboundEmailRejectionSender.InboundEmailError INTERNAL_EXCEPTION
-
COMMENT_REJECTED
public static final InboundEmailRejectionSender.InboundEmailError COMMENT_REJECTED
-
CHANGE_NOT_FOUND
public static final InboundEmailRejectionSender.InboundEmailError CHANGE_NOT_FOUND
-
-
Method Detail
-
values
public static InboundEmailRejectionSender.InboundEmailError[] 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.InboundEmailError c : InboundEmailRejectionSender.InboundEmailError.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.InboundEmailError 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
-
-