001 /*
002 * The MIT License
003 * Copyright (c) 2012 Microsoft Corporation
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023
024 package microsoft.exchange.webservices.data.core.enumeration.property.error;
025
026 /**
027 * Defines the error codes identifying why a rule failed validation.
028 */
029 public enum RuleErrorCode {
030
031 /**
032 * Active Directory operation failed.
033 */
034 ADOperationFailure,
035
036 /**
037 * The e-mail account specified in the
038 * FromConnectedAccounts predicate was not found.
039 */
040 ConnectedAccountNotFound,
041
042 /**
043 * The Rule object in a CreateInboxRuleOperation has an Id. The Ids of new
044 * rules are generated server side and
045 * should not be provided by the client.
046 */
047 CreateWithRuleId,
048
049 /**
050 * The value is empty. An empty value is not allowed for the property.
051 */
052 EmptyValueFound,
053
054 /**
055 * There already is a rule with the same priority.
056 */
057 DuplicatedPriority,
058
059 /**
060 * There are multiple operations against the same rule.
061 * Only one operation per rule is allowed.
062 */
063 DuplicatedOperationOnTheSameRule,
064
065 /**
066 * The folder does not exist in the user's mailbox.
067 */
068 FolderDoesNotExist,
069
070 /**
071 * The e-mail address is invalid.
072 */
073 InvalidAddress,
074
075 /**
076 * The date range is invalid.
077 */
078 InvalidDateRange,
079
080 /**
081 * The folder Id is invalid.
082 */
083 InvalidFolderId,
084
085 /**
086 * The size range is invalid.
087 */
088 InvalidSizeRange,
089
090 /**
091 * The value is invalid.
092 */
093 InvalidValue,
094
095 /**
096 * The message classification was not found.
097 */
098 MessageClassificationNotFound,
099
100 /**
101 * No action was specified. At least one action must be specified.
102 */
103 MissingAction,
104
105 /**
106 * The required parameter is missing.
107 */
108 MissingParameter,
109
110 /**
111 * The range value is missing.
112 */
113 MissingRangeValue,
114
115 /**
116 * The property cannot be modified.
117 */
118 NotSettable,
119
120 /**
121 * The recipient does not exist.
122 */
123 RecipientDoesNotExist,
124
125 /**
126 * The rule was not found.
127 */
128 RuleNotFound,
129
130 /**
131 * The size is less than zero.
132 */
133 SizeLessThanZero,
134
135 /**
136 * The string value is too big.
137 */
138 StringValueTooBig,
139
140 /**
141 * The address is unsupported.
142 */
143 UnsupportedAddress,
144
145 /**
146 * An unexpected error occured.
147 */
148 UnexpectedError,
149
150 /**
151 * The rule is not supported.
152 */
153 UnsupportedRule
154 }
155