317 references to ErrorNumbers
System.Workflow.Activities (317)
Common\ValidationHelpers.cs (5)
58
error = new ValidationError(SR.GetString(SR.Error_PropertyNotSet, propName),
ErrorNumbers
.Error_PropertyNotSet);
67
error = new ValidationError(SR.GetString(SR.Error_InvalidIdentifier, propName, e.Message),
ErrorNumbers
.Error_InvalidIdentifier);
82
error = new ValidationError(SR.GetString(SR.Error_PropertyNotSet, propName),
ErrorNumbers
.Error_PropertyNotSet);
92
error = new ValidationError(SR.GetString(SR.Error_InvalidIdentifier, propName, SR.GetString(SR.Error_InvalidLanguageIdentifier, identifier)),
ErrorNumbers
.Error_InvalidIdentifier);
116
ValidationError duplicateError = new ValidationError(SR.GetString(SR.Error_DuplicatedActivityID, activity.QualifiedName),
ErrorNumbers
.Error_DuplicatedActivityID);
Conditional.cs (3)
149
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ConditionalLessThanOneChildren),
ErrorNumbers
.Error_IfElseLessThanOneChildren));
156
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ConditionalDeclNotAllConditionalBranchDecl),
ErrorNumbers
.Error_IfElseNotAllIfElseBranchDecl));
173
return new ValidationError(SR.GetString(SR.Error_DynamicActivity, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus)),
ErrorNumbers
.Error_DynamicActivity);
ConditionalBranch.cs (1)
73
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ConditionalBranchParentNotConditional),
ErrorNumbers
.Error_ConditionalBranchParentNotConditional));
ConstrainedGroup.cs (2)
177
ValidationError error = new ValidationError(SR.GetString(SR.Error_NestedConstrainedGroupConditions, propertyName),
ErrorNumbers
.Error_NestedConstrainedGroupConditions);
824
return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, activity.ExecutionStatus, activity.GetType().FullName),
ErrorNumbers
.Error_DynamicActivity2);
CorrelationValidator.cs (31)
40
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), interfaceType.FullName),
ErrorNumbers
.Error_GenericMethodsNotSupported);
49
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ExternalDataExchangeException), interfaceType.FullName),
ErrorNumbers
.Error_TypeNotExist);
74
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MissingMethodName, activity.Name, ((CallExternalMethodActivity)activity).MethodName),
ErrorNumbers
.Error_MissingMethodName));
79
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), methodInfo.Name),
ErrorNumbers
.Error_GenericMethodsNotSupported);
94
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MissingEventName, activity.Name, ((HandleExternalEventActivity)activity).EventName),
ErrorNumbers
.Error_MissingMethodName));
110
validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_CorrelationTokenSpecifiedForUncorrelatedInterface), activity.QualifiedName, interfaceType),
ErrorNumbers
.Error_InvalidIdentifier, false, "CorrelationToken"));
121
validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_MissingCorrelationTokenProperty), activity.QualifiedName),
ErrorNumbers
.Error_ParameterPropertyNotSet, false, "CorrelationToken"));
127
validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_MissingCorrelationTokenOwnerNameProperty), activity.QualifiedName),
ErrorNumbers
.Error_ParameterPropertyNotSet, false, "CorrelationToken"));
158
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_OwnerActivityIsNotParent), activity.QualifiedName),
ErrorNumbers
.Error_ParameterPropertyNotSet);
172
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InitializerInReplicator), replicatorParent.QualifiedName),
ErrorNumbers
.Error_InitializerInReplicator, false);
200
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_CorrelationTokenInReplicator, correlator.Name, replicatorParent.QualifiedName)),
ErrorNumbers
.Error_CorrelationTokenInReplicator, true);
288
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_UninitializedCorrelation)),
ErrorNumbers
.Error_UninitializedCorrelation, true);
293
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_MisMatchCorrelationTokenOwnerNameProperty), correlator.Name),
ErrorNumbers
.Error_UninitializedCorrelation, false);
301
ValidationError error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InitializerFollowerInTxnlScope)),
ErrorNumbers
.Error_InitializerFollowerInTxnlScope, false);
428
string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), (memberInfo is EventInfo) ? delegateType.Name : methodInfo.Name),
ErrorNumbers
.Error_GenericMethodsNotSupported);
439
string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ReturnTypeNotVoid), (memberInfo is EventInfo) ? delegateType.Name : methodInfo.Name),
ErrorNumbers
.Error_ReturnTypeNotVoid);
452
string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_OutRefParameterNotSupported), (memberInfo is EventInfo) ? delegateType.Name : methodInfo.Name, param.Name),
ErrorNumbers
.Error_OutRefParameterNotSupported);
478
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationParameterAttribute).Name, "Name", interfaceType.Name),
ErrorNumbers
.Error_CorrelationAttributeInvalid);
485
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationParameterAttribute).Name, parameterAttribute.Name, interfaceType.Name),
ErrorNumbers
.Error_DuplicateCorrelationAttribute);
576
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationParameterNotFound, typeof(CorrelationAliasAttribute).Name, paramName, memberInfo.Name, typeof(CorrelationParameterAttribute).Name, interfaceType.Name),
ErrorNumbers
.Error_CorrelationParameterNotFound);
602
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInvalid, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramName),
ErrorNumbers
.Error_CorrelationInvalid);
609
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationTypeNotConsistent, paramPath, typeof(CorrelationAliasAttribute).Name, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramType.Name, ((Type)paramTypes[paramName]).Name, paramName, interfaceType.Name),
ErrorNumbers
.Error_CorrelationTypeNotConsistent);
618
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInitializerNotDefinied, interfaceType.Name),
ErrorNumbers
.Error_CorrelationInitializerNotDefinied);
645
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_MissingCorrelationParameterAttribute, interfaceType.Name),
ErrorNumbers
.Error_MissingCorrelationParameterAttribute);
675
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Name", memberInfo.Name),
ErrorNumbers
.Error_CorrelationAttributeInvalid);
683
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Path", memberInfo.Name),
ErrorNumbers
.Error_CorrelationAttributeInvalid);
691
ValidationError error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationAliasAttribute).Name, aliasAttribute.Name, memberInfo.Name),
ErrorNumbers
.Error_DuplicateCorrelationAttribute);
880
validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InvalidEventArgsSignature, operation)),
ErrorNumbers
.Error_FieldNotExists, false, "EventName"));
891
validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InvalidEventPropertyName, paramName)),
ErrorNumbers
.Error_FieldNotExists, false, "ParameterBindings"));
893
validationErrors.Add(new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InvalidMethodPropertyName, paramName)),
ErrorNumbers
.Error_FieldNotExists, false, "ParameterBindings"));
931
ErrorNumbers
.Error_FieldNotExists, false, "EventName"));
Delay.cs (1)
161
errors.Add(new ValidationError(SR.GetString(SR.Error_NegativeValue, new object[] { delay.TimeoutDuration.ToString(), "TimeoutDuration" }),
ErrorNumbers
.Error_NegativeValue));
EventDriven.cs (5)
70
validationErrors.Add(new ValidationError(SR.GetError_EventDrivenParentNotListen(),
ErrorNumbers
.Error_EventDrivenParentNotListen));
79
errorNumber =
ErrorNumbers
.Error_EventDrivenNoFirstActivity;
84
errorNumber =
ErrorNumbers
.Error_EventDrivenInvalidFirstActivity;
102
return new ValidationError(SR.GetString(SR.Error_EventActivityIsImmutable),
ErrorNumbers
.Error_DynamicActivity, false);
109
return new ValidationError(SR.GetString(SR.Error_EventActivityIsImmutable),
ErrorNumbers
.Error_DynamicActivity, false);
EventHandlers.cs (3)
477
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MustHaveParent),
ErrorNumbers
.Error_EventHandlersDeclParentNotScope));
483
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_EventHandlersDeclParentNotScope, eventHandlers.Parent.QualifiedName),
ErrorNumbers
.Error_EventHandlersDeclParentNotScope));
494
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ListenNotAllEventDriven),
ErrorNumbers
.Error_ListenNotAllEventDriven));
EventHandlingScope.cs (4)
230
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanTwoActivitiesInEventHandlingScope, compositeActivity.QualifiedName),
ErrorNumbers
.Error_MoreThanTwoActivitiesInEventHandlingScope));
234
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_MoreThanOneEventHandlersDecl, compositeActivity.GetType().Name),
ErrorNumbers
.Error_ScopeMoreThanOneEventHandlersDecl));
250
return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName),
ErrorNumbers
.Error_DynamicActivity2);
254
return new ValidationError(SR.GetString(SR.Error_DynamicActivity3, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName),
ErrorNumbers
.Error_DynamicActivity2);
InvokeSchedule.cs (6)
201
ValidationError error = new ValidationError(SR.GetString(SR.Error_TypePropertyInvalid, "TargetWorkflow"),
ErrorNumbers
.Error_PropertyNotSet);
221
ValidationError error = new ValidationError(SR.GetString(SR.Error_TypeIsNotRootActivity, "TargetWorkflow"),
ErrorNumbers
.Error_TypeIsNotRootActivity);
239
ValidationError error = new ValidationError(SR.GetString(SR.Error_GetCalleeWorkflow, invokeWorkflow.TargetWorkflow),
ErrorNumbers
.Error_GetCalleeWorkflow);
251
ValidationError validationError = new ValidationError(SR.GetString(SR.Error_ExecWithActivationReceive),
ErrorNumbers
.Error_ExecWithActivationReceive);
276
ValidationError validationError = new ValidationError(SR.GetString(SR.Error_ExecInAtomicScope),
ErrorNumbers
.Error_ExecInAtomicScope);
287
ValidationError validationError = new ValidationError(SR.GetString(SR.Error_ParameterNotFound, paramBinding.ParameterName),
ErrorNumbers
.Error_ParameterNotFound);
InvokeWebService.cs (3)
435
ValidationError error = new ValidationError(SR.GetString(SR.Error_TypePropertyInvalid, "ProxyClass"),
ErrorNumbers
.Error_PropertyNotSet);
455
ValidationError error = new ValidationError(SR.GetString(SR.Error_MethodNotExists, "MethodName", invokeWebService.MethodName),
ErrorNumbers
.Error_MethodNotExists);
507
validationErrors.Add(new ValidationError(SR.GetString(SR.Warning_AdditionalBindingsFound),
ErrorNumbers
.Warning_AdditionalBindingsFound, true));
Listen.cs (2)
301
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ListenLessThanTwoChildren),
ErrorNumbers
.Error_ListenLessThanTwoChildren));
313
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ListenNotAllEventDriven),
ErrorNumbers
.Error_ListenNotAllEventDriven));
Parallel.cs (2)
206
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ParallelLessThanTwoChildren),
ErrorNumbers
.Error_ParallelLessThanTwoChildren));
220
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ParallelNotAllSequence),
ErrorNumbers
.Error_ParallelNotAllSequence));
Rules\ArithmeticLiteral.cs (1)
321
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
Rules\DeclarativeExpressionConditionDeclaration.cs (5)
167
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_EmptyExpression);
383
ValidationError validationError = new ValidationError(message,
ErrorNumbers
.Error_ConditionNotFound);
405
int errorNumber =
ErrorNumbers
.Error_InvalidConditionExpression;
430
ValidationError validationError = new ValidationError(message,
ErrorNumbers
.Error_DuplicateConditions);
448
ValidationError validationError = new ValidationError(message,
ErrorNumbers
.Error_InvalidConditionName);
Rules\Expressions.cs (70)
50
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
119
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
193
error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
204
error = new ValidationError(message,
ErrorNumbers
.Error_LeftOperandMissing);
213
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
225
error = new ValidationError(message,
ErrorNumbers
.Error_RightOperandMissing);
234
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
329
error = new ValidationError(message,
ErrorNumbers
.Error_LeftOperandInvalidType);
338
error = new ValidationError(message,
ErrorNumbers
.Error_RightOperandInvalidType);
348
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
906
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
930
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_BindingTypeMissing);
948
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
958
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CouldNotDetermineMemberType);
967
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
1061
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
1085
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_BindingTypeMissing);
1103
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
1113
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CouldNotDetermineMemberType);
1124
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
1277
error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
1286
error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
1294
error = new ValidationError(Messages.GenericMethodsNotSupported,
ErrorNumbers
.Error_CodeExpressionNotHandled);
1318
error = new ValidationError(message,
ErrorNumbers
.Error_BindingTypeMissing);
1335
error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
1345
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
1409
error = new ValidationError(message,
ErrorNumbers
.Error_CouldNotDetermineMemberType);
1733
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
1742
ValidationError error = new ValidationError(Messages.NullDirectionTarget,
ErrorNumbers
.Error_ParameterNotSet);
1751
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
1891
ValidationError error = new ValidationError(Messages.NullTypeType,
ErrorNumbers
.Error_ParameterNotSet);
1900
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
1996
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
2004
ValidationError error = new ValidationError(Messages.NullCastExpr,
ErrorNumbers
.Error_ParameterNotSet);
2013
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
2021
ValidationError error = new ValidationError(Messages.NullCastType,
ErrorNumbers
.Error_ParameterNotSet);
2043
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
2115
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
2268
error = new ValidationError(Messages.NullIndexerTarget,
ErrorNumbers
.Error_ParameterNotSet);
2276
error = new ValidationError(Messages.IndexersCannotBeStatic,
ErrorNumbers
.Error_ParameterNotSet);
2284
error = new ValidationError(Messages.MissingIndexExpressions,
ErrorNumbers
.Error_ParameterNotSet);
2308
error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
2322
error = new ValidationError(Messages.NullIndexExpression,
ErrorNumbers
.Error_ParameterNotSet);
2333
error = new ValidationError(Messages.IndexerArgCannotBeRefOrOut,
ErrorNumbers
.Error_IndexerArgCannotBeRefOrOut);
2342
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
2393
error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
2645
error = new ValidationError(Messages.NullIndexerTarget,
ErrorNumbers
.Error_ParameterNotSet);
2653
error = new ValidationError(Messages.IndexersCannotBeStatic,
ErrorNumbers
.Error_ParameterNotSet);
2661
error = new ValidationError(Messages.MissingIndexExpressions,
ErrorNumbers
.Error_ParameterNotSet);
2684
error = new ValidationError(Messages.NullIndexerTarget,
ErrorNumbers
.Error_ParameterNotSet);
2694
error = new ValidationError(message,
ErrorNumbers
.Error_CannotIndexType);
2704
error = new ValidationError(message,
ErrorNumbers
.Error_ArrayIndexBadRank);
2716
error = new ValidationError(Messages.NullIndexExpression,
ErrorNumbers
.Error_ParameterNotSet);
2727
error = new ValidationError(Messages.IndexerArgCannotBeRefOrOut,
ErrorNumbers
.Error_IndexerArgCannotBeRefOrOut);
2736
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
2763
error = new ValidationError(message,
ErrorNumbers
.Error_ArrayIndexBadType);
2921
error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
2929
error = new ValidationError(Messages.NullTypeType,
ErrorNumbers
.Error_ParameterNotSet);
2954
error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
2989
error = new ValidationError(message,
ErrorNumbers
.Error_MethodNotExists);
2999
error = new ValidationError(message,
ErrorNumbers
.Error_MethodNotExists);
3221
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidAssignTarget);
3229
ValidationError error = new ValidationError(Messages.NullTypeType,
ErrorNumbers
.Error_ParameterNotSet);
3247
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
3261
ValidationError error = new ValidationError(Messages.ArraySizeInvalid,
ErrorNumbers
.Error_ParameterNotSet);
3279
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
3292
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ParameterNotSet);
3316
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
3342
ValidationError error = new ValidationError(Messages.ArraySizeBoth,
ErrorNumbers
.Error_ParameterNotSet);
3354
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
Rules\Literal.cs (5)
436
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
460
error = new ValidationError(message2,
ErrorNumbers
.Error_OperandTypesIncompatible);
554
error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
778
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
796
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
Rules\Parser\Parser.cs (38)
1024
throw new RuleSyntaxException(
ErrorNumbers
.Error_EmptyExpression, Messages.Parser_EmptyExpression, parserContext.CurrentToken.StartPosition);
1029
throw new RuleSyntaxException(
ErrorNumbers
.Error_ExtraCharactersIgnored, Messages.Parser_ExtraCharactersIgnored, parserContext.CurrentToken.StartPosition);
1040
throw new RuleSyntaxException(
ErrorNumbers
.Error_ConditionMustBeBoolean, Messages.ConditionMustBeBoolean, 0);
1053
throw new RuleSyntaxException(
ErrorNumbers
.Error_ExtraCharactersIgnored, Messages.Parser_ExtraCharactersIgnored, parserContext.CurrentToken.StartPosition);
1120
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingLparenAfterCommand, message, parserContext.CurrentToken.StartPosition);
1145
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidUpdateExpression, Messages.Parser_InvalidUpdateExpression, updateArgToken.StartPosition);
1156
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingRParenAfterArgumentList, Messages.Parser_MissingRParenAfterArgumentList, parserContext.CurrentToken.StartPosition);
1355
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingRParenInSubexpression, Messages.Parser_MissingRParenInSubexpression, parserContext.CurrentToken.StartPosition);
1473
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingCloseSquareBracket, Messages.Parser_MissingCloseSquareBracket, parserContext.CurrentToken.StartPosition);
1506
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingIdentifierAfterDot, Messages.Parser_MissingIdentifierAfterDot, parserContext.CurrentToken.StartPosition);
1569
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingRParenAfterArgumentList, Messages.Parser_MissingRParenAfterArgumentList, parserContext.CurrentToken.StartPosition);
1589
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnknownFieldOrProperty, message, namePosition);
1616
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnknownFieldOrProperty, message, namePosition);
1783
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingRParenInSubexpression, Messages.Parser_MissingRParenInSubexpression, parserContext.CurrentToken.StartPosition);
1833
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingOperand, Messages.Parser_MissingOperand, token.StartPosition);
1836
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnknownLiteral, Messages.Parser_UnknownLiteral, token.StartPosition);
1864
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidTypeArgument, Messages.Parser_InvalidTypeArgument, token.StartPosition);
1872
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidTypeArgument, Messages.Parser_InvalidNew, token.StartPosition);
1899
throw new RuleSyntaxException(
ErrorNumbers
.Error_NoArrayCreationSize,
1936
throw new RuleSyntaxException(
ErrorNumbers
.Error_MethodNotExists, message, lparenPosition);
1985
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingRCurlyAfterInitializers,
2024
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnknownIdentifier, message, token.StartPosition);
2067
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingDotAfterNamespace, Messages.Parser_MissingDotAfterNamespace, token.StartPosition);
2079
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingIdentifierAfterDot, Messages.Parser_MissingIdentifierAfterDot, token.StartPosition);
2088
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnknownNamespaceMember, message, token.StartPosition);
2109
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingTypeArguments, message, token.StartPosition);
2120
throw new RuleSyntaxException(
ErrorNumbers
.Error_NotAGenericType, message, token.StartPosition);
2128
throw new RuleSyntaxException(
ErrorNumbers
.Error_BadTypeArgCount, message, parserContext.CurrentToken.StartPosition);
2178
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingTypeArguments, message, namePosition);
2248
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingIdentifierAfterDot, Messages.Parser_MissingIdentifierAfterDot, parserContext.CurrentToken.StartPosition);
2328
throw new RuleSyntaxException(
ErrorNumbers
.Error_BadTypeArgCount, message, parserContext.CurrentToken.StartPosition);
2345
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidTypeArgument, Messages.Parser_InvalidTypeArgument, token.StartPosition);
2351
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingCloseAngleBracket, Messages.Parser_MissingCloseAngleBracket, parserContext.CurrentToken.StartPosition);
2421
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingCloseSquareBracket,
2457
throw new RuleSyntaxException(
ErrorNumbers
.Error_MissingCloseSquareBracket, Messages.Parser_MissingCloseSquareBracket, parserContext.CurrentToken.StartPosition);
2749
throw new RuleSyntaxException(
ErrorNumbers
.Error_MethodNotExists, message, lparenPosition);
2760
throw new RuleSyntaxException(
ErrorNumbers
.Error_CannotResolveMember, message, lparenPosition);
2775
throw new RuleSyntaxException(
ErrorNumbers
.Error_MethodNotExists, invokeEx.InnerException.Message, lparenPosition);
Rules\Parser\Scanner.cs (13)
339
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidCharacter, message, tokenStartPosition);
354
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidCharacter, message, tokenStartPosition);
375
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnterminatedStringLiteral, Messages.Parser_UnterminatedStringLiteral, tokenStartPosition);
399
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnterminatedStringLiteral, Messages.Parser_UnterminatedStringLiteral, tokenStartPosition);
482
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidEscapeSequence, message, currentPosition - 1);
514
throw new RuleSyntaxException(
ErrorNumbers
.Error_UnterminatedCharacterLiteral, Messages.Parser_UnterminatedCharacterLiteral, currentPosition);
603
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidRealLiteral, message, tokenStartPosition);
616
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidRealLiteral, message, tokenStartPosition);
629
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidRealLiteral, message, tokenStartPosition);
644
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidIntegerLiteral, message, tokenStartPosition);
735
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidExponentDigit, message, currentPosition);
819
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidHexDigit, message, currentPosition);
841
throw new RuleSyntaxException(
ErrorNumbers
.Error_InvalidIntegerLiteral, message, tokenStartPosition);
Rules\Rule.cs (3)
143
validation.Errors.Add(new ValidationError(Messages.RuleNameMissing,
ErrorNumbers
.Error_InvalidConditionName));
147
validation.Errors.Add(new ValidationError(Messages.MissingRuleCondition,
ErrorNumbers
.Error_MissingRuleCondition));
195
validator.Errors.Add(new ValidationError(Messages.UnreachableCodeHalt,
ErrorNumbers
.Warning_UnreachableCode, true));
Rules\RuleAction.cs (5)
96
ValidationError error = new ValidationError(Messages.NullUpdate,
ErrorNumbers
.Error_ParameterNotSet);
114
ValidationError error = new ValidationError(Messages.InvalidWildCardInPathQualifier,
ErrorNumbers
.Error_InvalidWildCardInPathQualifier);
153
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_InvalidUpdate);
164
ValidationError error = new ValidationError(Messages.UpdateNotThis,
ErrorNumbers
.Error_InvalidUpdate);
239
ValidationError error = new ValidationError(Messages.NullStatement,
ErrorNumbers
.Error_ParameterNotSet);
Rules\RuleAttributes.cs (6)
98
error = new ValidationError(message,
ErrorNumbers
.Error_InvalidRuleAttributeParameter);
124
error = new ValidationError(Messages.InvalidWildCardInPathQualifier,
ErrorNumbers
.Error_InvalidWildCardInPathQualifier);
155
error = new ValidationError(message,
ErrorNumbers
.Error_UnknownFieldOrProperty);
331
error = new ValidationError(message,
ErrorNumbers
.Warning_RuleAttributeNoMatch, true);
347
error = new ValidationError(message,
ErrorNumbers
.Warning_RuleAttributeNoMatch, true);
374
error = new ValidationError(message,
ErrorNumbers
.Error_InvokeAttrRefersToParameterAttribute, true);
Rules\RuleSet.cs (1)
107
ValidationError error = new ValidationError(Messages.Error_DuplicateRuleName,
ErrorNumbers
.Error_DuplicateConditions);
Rules\RuleSetReference.cs (3)
138
ValidationError validationError = new ValidationError(message,
ErrorNumbers
.Error_RuleSetNotFound);
160
int errorNumber =
ErrorNumbers
.Error_InvalidRuleSetExpression;
206
ValidationError validationError = new ValidationError(message,
ErrorNumbers
.Error_InvalidRuleSetName);
Rules\RuleValidation.cs (33)
991
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_ConditionMustBeBoolean);
1072
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CyclicalExpression);
1269
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
1370
error = new ValidationError(message2,
ErrorNumbers
.Error_OperandTypesIncompatible);
1460
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
1612
error = new ValidationError(message2,
ErrorNumbers
.Error_OperandTypesIncompatible);
1909
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
2276
error = new ValidationError(e.Message,
ErrorNumbers
.Error_OperandTypesIncompatible);
2316
errorNumber =
ErrorNumbers
.Error_StaticMember;
2322
errorNumber =
ErrorNumbers
.Error_NonStaticMember;
2336
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
2347
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
2530
error = new ValidationError(message,
ErrorNumbers
.Error_MethodDirectionMismatch);
2541
error = new ValidationError(message,
ErrorNumbers
.Error_MethodArgumentTypeMismatch);
2553
error = new ValidationError(message,
ErrorNumbers
.Error_MethodArgumentTypeMismatch);
3137
return new ValidationError(message,
ErrorNumbers
.Error_MethodArgCountMismatch);
3164
error = new ValidationError(message,
ErrorNumbers
.Error_MethodNotExists);
3182
error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
3205
error = new ValidationError(message,
ErrorNumbers
.Error_MethodNotExists);
3223
error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
3462
return new ValidationError(message,
ErrorNumbers
.Error_MethodArgCountMismatch);
3479
error = new ValidationError(message,
ErrorNumbers
.Error_MethodOverloadNotFound);
3507
return new ValidationError(message,
ErrorNumbers
.Error_MethodArgCountMismatch);
3524
error = new ValidationError(message,
ErrorNumbers
.Error_MethodOverloadNotFound);
3548
error = new ValidationError(message,
ErrorNumbers
.Error_IndexerCountMismatch);
3562
error = new ValidationError(message,
ErrorNumbers
.Error_IndexerNotFound);
3579
error = new ValidationError(message,
ErrorNumbers
.Error_CannotResolveMember);
3652
return new ValidationError(message,
ErrorNumbers
.Error_IndexerCountMismatch);
3669
error = new ValidationError(message,
ErrorNumbers
.Error_IndexerOverloadNotFound);
3714
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_UnableToResolveType);
3751
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_UnableToResolveType);
3832
ValidationError error = new ValidationError(Messages.Error_ConfigFileMissingOrInvalid,
ErrorNumbers
.Error_ConfigFileMissingOrInvalid);
3881
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_TypeNotAuthorized);
Rules\Statements.cs (6)
43
ValidationError error = new ValidationError(Messages.NullInvokeStatementExpression,
ErrorNumbers
.Error_ParameterNotSet);
54
ValidationError error = new ValidationError(Messages.InvokeNotHandled,
ErrorNumbers
.Error_CodeExpressionNotHandled);
121
ValidationError error = new ValidationError(Messages.NullAssignLeft,
ErrorNumbers
.Error_LeftOperandMissing);
135
ValidationError error = new ValidationError(Messages.NullAssignRight,
ErrorNumbers
.Error_RightOperandMissing);
152
ValidationError error = new ValidationError(Messages.NullAssignLeft,
ErrorNumbers
.Error_LeftOperandInvalidType);
171
error = new ValidationError(message,
ErrorNumbers
.Error_OperandTypesIncompatible);
Rules\Walker.cs (1)
128
ValidationError error = new ValidationError(message,
ErrorNumbers
.Error_CodeExpressionNotHandled);
SetState.cs (4)
94
ErrorNumbers
.Error_PropertyNotSet, false,
110
validationErrors.Add(new ValidationError(SR.GetError_SetStateMustPointToAState(),
ErrorNumbers
.Error_SetStateMustPointToAState, false, SetStateActivity.TargetStateNamePropertyName));
116
validationErrors.Add(new ValidationError(SR.GetError_SetStateMustPointToALeafNodeState(),
ErrorNumbers
.Error_SetStateMustPointToALeafNodeState, false, SetStateActivity.TargetStateNamePropertyName));
143
validationErrors.Add(new ValidationError(SR.GetError_SetStateOnlyWorksOnStateMachineWorkflow(),
ErrorNumbers
.Error_SetStateOnlyWorksOnStateMachineWorkflow));
StateFinalizationActivity.cs (3)
55
validationErrors.Add(new ValidationError(SR.GetError_StateFinalizationParentNotState(),
ErrorNumbers
.Error_StateHandlerParentNotState));
68
SR.GetError_MultipleStateFinalizationActivities(),
ErrorNumbers
.Error_MultipleStateFinalizationActivities));
75
validationErrors.Add(new ValidationError(SR.GetError_EventActivityNotValidInStateFinalization(),
ErrorNumbers
.Error_EventActivityNotValidInStateHandler));
StateInitialization.cs (4)
55
validationErrors.Add(new ValidationError(SR.GetError_StateInitializationParentNotState(),
ErrorNumbers
.Error_StateHandlerParentNotState));
68
SR.GetError_MultipleStateInitializationActivities(),
ErrorNumbers
.Error_MultipleStateInitializationActivities));
77
validationErrors.Add(new ValidationError(SR.GetError_EventActivityNotValidInStateInitialization(),
ErrorNumbers
.Error_EventActivityNotValidInStateHandler));
107
SR.GetError_InvalidTargetStateInStateInitialization(),
ErrorNumbers
.Error_InvalidTargetStateInStateInitialization));
StateValidator.cs (16)
45
validationErrors.Add(new ValidationError(SR.GetError_StateMachineWorkflowMustBeARootActivity(),
ErrorNumbers
.Error_StateMachineWorkflowMustBeARootActivity));
55
validationErrors.Add(new ValidationError(SR.GetError_InvalidStateActivityParent(),
ErrorNumbers
.Error_InvalidStateActivityParent));
88
validationErrors.Add(new ValidationError(SR.GetError_BlackBoxCustomStateNotSupported(),
ErrorNumbers
.Error_BlackBoxCustomStateNotSupported));
103
return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, activity.ExecutionStatus, activity.GetType().FullName),
ErrorNumbers
.Error_DynamicActivity2);
119
ErrorNumbers
.Error_CantRemoveState);
129
ErrorNumbers
.Error_CantRemoveEventDrivenFromExecutingState);
194
ErrorNumbers
.Error_InvalidLeafStateChild));
221
ErrorNumbers
.Error_InvalidCompositeStateChild));
235
ErrorNumbers
.Error_PropertyNotSet, false,
248
ErrorNumbers
.Error_InitialStateMustPointToAState,
258
ErrorNumbers
.Error_InitialStateMustPointToALeafNodeState,
269
ErrorNumbers
.Error_InitialStateMustBeDifferentThanCompletedState,
289
ErrorNumbers
.Error_CompletedStateMustPointToAState,
300
ErrorNumbers
.Error_CompletedStateCannotContainActivities,
308
ErrorNumbers
.Error_CompletedStateMustPointToALeafNodeState,
361
ErrorNumbers
.Error_EventDrivenMultipleEventActivity));
Task.cs (1)
1246
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_GeneratorShouldContainSingleActivity),
ErrorNumbers
.Error_GeneratorShouldContainSingleActivity));
WebServiceFault.cs (8)
202
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_DuplicateWebServiceFaultFound, activity.Name, webServiceFault.InputActivityName),
ErrorNumbers
.Error_DuplicateWebServiceFaultFound));
204
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_DuplicateWebServiceResponseFound, activity.Name, webServiceFault.InputActivityName),
ErrorNumbers
.Error_DuplicateWebServiceResponseFound));
222
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotValid, webServiceFault.InputActivityName),
ErrorNumbers
.Error_WebServiceReceiveNotValid));
231
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotFound, webServiceFault.InputActivityName),
ErrorNumbers
.Error_WebServiceReceiveNotFound));
242
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name),
ErrorNumbers
.Error_WebServiceReceiveNotConfigured));
249
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name),
ErrorNumbers
.Error_WebServiceReceiveNotConfigured));
257
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name),
ErrorNumbers
.Error_WebServiceReceiveNotConfigured));
266
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceFaultNotNeeded),
ErrorNumbers
.Error_WebServiceFaultNotNeeded));
WebServiceReceive.cs (9)
493
ValidationError error = new ValidationError(SR.GetString(SR.Error_ActivationActivityNotFirst),
ErrorNumbers
.Error_ActivationActivityNotFirst);
501
ValidationError error = new ValidationError(SR.GetString(SR.Error_ActivationActivityInsideLoop),
ErrorNumbers
.Error_ActivationActivityInsideLoop);
511
ValidationError error = new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotMarkedActivate),
ErrorNumbers
.Error_WebServiceReceiveNotMarkedActivate);
528
ValidationError error = new ValidationError(SR.GetString(SR.Error_TypePropertyInvalid, "InterfaceType"),
ErrorNumbers
.Error_PropertyNotSet);
534
ValidationError error = new ValidationError(SR.GetString(SR.Error_InterfaceTypeNotInterface, "InterfaceType"),
ErrorNumbers
.Error_InterfaceTypeNotInterface);
549
ValidationError error = new ValidationError(SR.GetString(SR.Error_MethodNotExists, "MethodName", webServiceReceive.MethodName),
ErrorNumbers
.Error_MethodNotExists);
587
ValidationError validationError = new ValidationError(SR.GetString(SR.Error_TypeNotPublicSerializable, paramName, paramType.FullName),
ErrorNumbers
.Error_TypeNotPublicSerializable);
612
validationErrors.Add(new ValidationError(SR.GetString(SR.Warning_AdditionalBindingsFound),
ErrorNumbers
.Warning_AdditionalBindingsFound, true));
629
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceResponseNotFound),
ErrorNumbers
.Error_WebServiceResponseNotFound));
WebServiceResponse.cs (12)
326
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_DuplicateWebServiceResponseFound, activity.QualifiedName, webServiceResponse.InputActivityName),
ErrorNumbers
.Error_DuplicateWebServiceResponseFound));
328
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_DuplicateWebServiceFaultFound, activity.QualifiedName, webServiceResponse.InputActivityName),
ErrorNumbers
.Error_DuplicateWebServiceFaultFound));
345
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotValid, webServiceResponse.InputActivityName),
ErrorNumbers
.Error_WebServiceReceiveNotValid));
354
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotFound, webServiceResponse.InputActivityName),
ErrorNumbers
.Error_WebServiceReceiveNotFound));
365
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name),
ErrorNumbers
.Error_WebServiceReceiveNotConfigured));
371
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name),
ErrorNumbers
.Error_WebServiceReceiveNotConfigured));
378
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name),
ErrorNumbers
.Error_WebServiceReceiveNotConfigured));
398
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WebServiceResponseNotNeeded),
ErrorNumbers
.Error_WebServiceResponseNotNeeded));
422
ValidationError validationError = new ValidationError(SR.GetString(SR.Error_TypeNotPublicSerializable, paramName, paramType.FullName),
ErrorNumbers
.Error_TypeNotPublicSerializable);
450
validationErrors.Add(new ValidationError(SR.GetString(SR.Warning_AdditionalBindingsFound),
ErrorNumbers
.Warning_AdditionalBindingsFound, true));
693
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ParameterTypeNotFound, methodInfo.Name, paramInfo.Name),
ErrorNumbers
.Error_ParameterTypeNotFound));
699
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_ReturnTypeNotFound, methodInfo.Name),
ErrorNumbers
.Error_ReturnTypeNotFound));
While.cs (2)
171
validationErrors.Add(new ValidationError(SR.GetString(SR.Error_WhileShouldHaveOneChild),
ErrorNumbers
.Error_WhileShouldHaveOneChild));
187
return new ValidationError(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName),
ErrorNumbers
.Error_DynamicActivity2);