Package com.adobe.aemds.guide.utils
Enum GuideSubmitErrorCause
- java.lang.Object
-
- java.lang.Enum<GuideSubmitErrorCause>
-
- com.adobe.aemds.guide.utils.GuideSubmitErrorCause
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GuideSubmitErrorCause>
public enum GuideSubmitErrorCause extends java.lang.Enum<GuideSubmitErrorCause>
GuideSubmitErrorCause represents reason due to which server side failure happened. 1) If validation failure is caused by Captcha then use CAPTCHA_VALIDATION 2) If validation failure is caused by server side validation failure then use SERVER_SIDE_VALIDATION.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGREEMENT_CREATION
CAPTCHA_VALIDATION
FORM_SUBMISSION
SERVER_SIDE_VALIDATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GuideSubmitErrorCause
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GuideSubmitErrorCause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CAPTCHA_VALIDATION
public static final GuideSubmitErrorCause CAPTCHA_VALIDATION
-
SERVER_SIDE_VALIDATION
public static final GuideSubmitErrorCause SERVER_SIDE_VALIDATION
-
FORM_SUBMISSION
public static final GuideSubmitErrorCause FORM_SUBMISSION
-
AGREEMENT_CREATION
public static final GuideSubmitErrorCause AGREEMENT_CREATION
-
-
Method Detail
-
values
public static GuideSubmitErrorCause[] 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 (GuideSubmitErrorCause c : GuideSubmitErrorCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GuideSubmitErrorCause valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-