public enum DateRangeErrorReason extends Enum<DateRangeErrorReason>
Java class for DateRangeError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="DateRangeError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="DATE_RANGE_ERROR"/>
<enumeration value="INVALID_DATE"/>
<enumeration value="START_DATE_AFTER_END_DATE"/>
<enumeration value="CANNOT_SET_DATE_TO_PAST"/>
<enumeration value="AFTER_MAXIMUM_ALLOWABLE_DATE"/>
<enumeration value="CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AFTER_MAXIMUM_ALLOWABLE_DATE
A date was used that is past the system "last" date.
|
CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED
Trying to change start date on a campaign that has started.
|
CANNOT_SET_DATE_TO_PAST
Cannot set date to past time
|
DATE_RANGE_ERROR |
INVALID_DATE
Invalid date.
|
START_DATE_AFTER_END_DATE
The start date was after the end date.
|
| Modifier and Type | Method and Description |
|---|---|
static DateRangeErrorReason |
fromValue(String v) |
String |
value() |
static DateRangeErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateRangeErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateRangeErrorReason DATE_RANGE_ERROR
public static final DateRangeErrorReason INVALID_DATE
public static final DateRangeErrorReason START_DATE_AFTER_END_DATE
public static final DateRangeErrorReason CANNOT_SET_DATE_TO_PAST
public static final DateRangeErrorReason AFTER_MAXIMUM_ALLOWABLE_DATE
public static final DateRangeErrorReason CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED
public static DateRangeErrorReason[] values()
for (DateRangeErrorReason c : DateRangeErrorReason.values()) System.out.println(c);
public static DateRangeErrorReason 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 String value()
public static DateRangeErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.