microsoft.exchange.webservices.data
Enum RuleErrorCode

java.lang.Object
  extended by java.lang.Enum<RuleErrorCode>
      extended by microsoft.exchange.webservices.data.RuleErrorCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RuleErrorCode>

public enum RuleErrorCode
extends java.lang.Enum<RuleErrorCode>

Defines the error codes identifying why a rule failed validation.


Enum Constant Summary
ADOperationFailure
          Active Directory operation failed.
ConnectedAccountNotFound
          The e-mail account specified in the FromConnectedAccounts predicate was not found.
CreateWithRuleId
          The Rule object in a CreateInboxRuleOperation has an Id.
DuplicatedOperationOnTheSameRule
          There are multiple operations against the same rule.
DuplicatedPriority
          There already is a rule with the same priority.
EmptyValueFound
          The value is empty.
FolderDoesNotExist
          The folder does not exist in the user's mailbox.
InvalidAddress
          The e-mail address is invalid.
InvalidDateRange
          The date range is invalid.
InvalidFolderId
          The folder Id is invalid.
InvalidSizeRange
          The size range is invalid.
InvalidValue
          The value is invalid.
MessageClassificationNotFound
          The message classification was not found.
MissingAction
          No action was specified.
MissingParameter
          The required parameter is missing.
MissingRangeValue
          The range value is missing.
NotSettable
          The property cannot be modified.
RecipientDoesNotExist
          The recipient does not exist.
RuleNotFound
          The rule was not found.
SizeLessThanZero
          The size is less than zero.
StringValueTooBig
          The string value is too big.
UnexpectedError
          An unexpected error occured.
UnsupportedAddress
          The address is unsupported.
UnsupportedRule
          The rule is not supported.
 
Method Summary
static RuleErrorCode valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(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 name
java.lang.NullPointerException - if the argument is null