Enum RuleErrorCode
- java.lang.Object
-
- java.lang.Enum<RuleErrorCode>
-
- microsoft.exchange.webservices.data.core.enumeration.property.error.RuleErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<RuleErrorCode>
public enum RuleErrorCode extends Enum<RuleErrorCode>
Defines the error codes identifying why a rule failed validation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADOperationFailureActive Directory operation failed.ConnectedAccountNotFoundThe e-mail account specified in the FromConnectedAccounts predicate was not found.CreateWithRuleIdThe Rule object in a CreateInboxRuleOperation has an Id.DuplicatedOperationOnTheSameRuleThere are multiple operations against the same rule.DuplicatedPriorityThere already is a rule with the same priority.EmptyValueFoundThe value is empty.FolderDoesNotExistThe folder does not exist in the user's mailbox.InvalidAddressThe e-mail address is invalid.InvalidDateRangeThe date range is invalid.InvalidFolderIdThe folder Id is invalid.InvalidSizeRangeThe size range is invalid.InvalidValueThe value is invalid.MessageClassificationNotFoundThe message classification was not found.MissingActionNo action was specified.MissingParameterThe required parameter is missing.MissingRangeValueThe range value is missing.NotSettableThe property cannot be modified.RecipientDoesNotExistThe recipient does not exist.RuleNotFoundThe rule was not found.SizeLessThanZeroThe size is less than zero.StringValueTooBigThe string value is too big.UnexpectedErrorAn unexpected error occured.UnsupportedAddressThe address is unsupported.UnsupportedRuleThe rule is not supported.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuleErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static RuleErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADOperationFailure
public static final RuleErrorCode ADOperationFailure
Active Directory operation failed.
-
ConnectedAccountNotFound
public static final RuleErrorCode ConnectedAccountNotFound
The e-mail account specified in the FromConnectedAccounts predicate was not found.
-
CreateWithRuleId
public static final RuleErrorCode CreateWithRuleId
The Rule object in a CreateInboxRuleOperation has an Id. The Ids of new rules are generated server side and should not be provided by the client.
-
EmptyValueFound
public static final RuleErrorCode EmptyValueFound
The value is empty. An empty value is not allowed for the property.
-
DuplicatedPriority
public static final RuleErrorCode DuplicatedPriority
There already is a rule with the same priority.
-
DuplicatedOperationOnTheSameRule
public static final RuleErrorCode DuplicatedOperationOnTheSameRule
There are multiple operations against the same rule. Only one operation per rule is allowed.
-
FolderDoesNotExist
public static final RuleErrorCode FolderDoesNotExist
The folder does not exist in the user's mailbox.
-
InvalidAddress
public static final RuleErrorCode InvalidAddress
The e-mail address is invalid.
-
InvalidDateRange
public static final RuleErrorCode InvalidDateRange
The date range is invalid.
-
InvalidFolderId
public static final RuleErrorCode InvalidFolderId
The folder Id is invalid.
-
InvalidSizeRange
public static final RuleErrorCode InvalidSizeRange
The size range is invalid.
-
InvalidValue
public static final RuleErrorCode InvalidValue
The value is invalid.
-
MessageClassificationNotFound
public static final RuleErrorCode MessageClassificationNotFound
The message classification was not found.
-
MissingAction
public static final RuleErrorCode MissingAction
No action was specified. At least one action must be specified.
-
MissingParameter
public static final RuleErrorCode MissingParameter
The required parameter is missing.
-
MissingRangeValue
public static final RuleErrorCode MissingRangeValue
The range value is missing.
-
NotSettable
public static final RuleErrorCode NotSettable
The property cannot be modified.
-
RecipientDoesNotExist
public static final RuleErrorCode RecipientDoesNotExist
The recipient does not exist.
-
RuleNotFound
public static final RuleErrorCode RuleNotFound
The rule was not found.
-
SizeLessThanZero
public static final RuleErrorCode SizeLessThanZero
The size is less than zero.
-
StringValueTooBig
public static final RuleErrorCode StringValueTooBig
The string value is too big.
-
UnsupportedAddress
public static final RuleErrorCode UnsupportedAddress
The address is unsupported.
-
UnexpectedError
public static final RuleErrorCode UnexpectedError
An unexpected error occured.
-
UnsupportedRule
public static final RuleErrorCode UnsupportedRule
The rule is not supported.
-
-
Method Detail
-
values
public static RuleErrorCode[] 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 (RuleErrorCode c : RuleErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuleErrorCode 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
-
-