Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Rules / Parser / Exceptions.cs / 1305376 / Exceptions.cs
// ----------------------------------------------------------------------------
// Copyright (C) 2006 Microsoft Corporation All Rights Reserved
// ---------------------------------------------------------------------------
#define CODE_ANALYSIS
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace System.Workflow.Activities.Rules
{
// RuleBuilderSyntaxException contains syntax error information in cases where the RuleBuilder
// failed to parse the expression.
[Serializable]
[SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic")]
internal class RuleSyntaxException : SystemException
{
private int position;
private int errorNumber;
#region Constructors
internal RuleSyntaxException()
{
}
internal RuleSyntaxException(int errorNumber, string message, int position)
: base(message)
{
this.errorNumber = errorNumber;
this.position = position;
}
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
private RuleSyntaxException(SerializationInfo serializeInfo, StreamingContext context)
: base(serializeInfo, context)
{
}
#endregion
internal int Position
{
get { return position; }
}
internal int ErrorNumber
{
get { return errorNumber; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
// Copyright (C) 2006 Microsoft Corporation All Rights Reserved
// ---------------------------------------------------------------------------
#define CODE_ANALYSIS
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace System.Workflow.Activities.Rules
{
// RuleBuilderSyntaxException contains syntax error information in cases where the RuleBuilder
// failed to parse the expression.
[Serializable]
[SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic")]
internal class RuleSyntaxException : SystemException
{
private int position;
private int errorNumber;
#region Constructors
internal RuleSyntaxException()
{
}
internal RuleSyntaxException(int errorNumber, string message, int position)
: base(message)
{
this.errorNumber = errorNumber;
this.position = position;
}
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
private RuleSyntaxException(SerializationInfo serializeInfo, StreamingContext context)
: base(serializeInfo, context)
{
}
#endregion
internal int Position
{
get { return position; }
}
internal int ErrorNumber
{
get { return errorNumber; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _Connection.cs
- Module.cs
- KoreanCalendar.cs
- FormsAuthenticationUserCollection.cs
- ClientSideProviderDescription.cs
- ResourceCategoryAttribute.cs
- AutoGeneratedFieldProperties.cs
- RegexCapture.cs
- SocketStream.cs
- DataGridViewCellParsingEventArgs.cs
- ProfileService.cs
- XmlEncApr2001.cs
- XmlIterators.cs
- XmlDocumentSerializer.cs
- HtmlObjectListAdapter.cs
- PipelineComponent.cs
- BitmapInitialize.cs
- ToolboxComponentsCreatedEventArgs.cs
- SingleSelectRootGridEntry.cs
- MetafileHeader.cs
- MarkedHighlightComponent.cs
- XmlReaderSettings.cs
- ToolStripPanelRow.cs
- SynchronizedDisposablePool.cs
- Char.cs
- DataPagerFieldItem.cs
- Expression.cs
- ComboBoxRenderer.cs
- PhonemeEventArgs.cs
- Object.cs
- GridItemCollection.cs
- assemblycache.cs
- FileIOPermission.cs
- CodeObject.cs
- ExpressionBuilderCollection.cs
- DesignTimeTemplateParser.cs
- ToolStripContentPanelRenderEventArgs.cs
- ConfigurationElementProperty.cs
- ParseElement.cs
- GotoExpression.cs
- EntityTypeEmitter.cs
- XslAst.cs
- TagNameToTypeMapper.cs
- PropertyIDSet.cs
- ListChangedEventArgs.cs
- SEHException.cs
- RepeatInfo.cs
- TextBox.cs
- DataContractJsonSerializer.cs
- AxisAngleRotation3D.cs
- CompilerInfo.cs
- LogicalExpr.cs
- AnnotationAdorner.cs
- StorageEntitySetMapping.cs
- EntityDataSourceContextCreatedEventArgs.cs
- WindowsProgressbar.cs
- Point4DValueSerializer.cs
- ColorTransformHelper.cs
- Fonts.cs
- Function.cs
- DashStyles.cs
- HtmlHistory.cs
- UnlockInstanceCommand.cs
- WindowsFormsHelpers.cs
- BrowserDefinitionCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- MetadataArtifactLoaderResource.cs
- QueryAsyncResult.cs
- TypeElement.cs
- DbProviderFactory.cs
- SiteMapSection.cs
- OdbcPermission.cs
- RegionData.cs
- BrushConverter.cs
- NoneExcludedImageIndexConverter.cs
- WeakReadOnlyCollection.cs
- OutKeywords.cs
- OrderedDictionary.cs
- PropertyInformationCollection.cs
- SystemUnicastIPAddressInformation.cs
- HandlerWithFactory.cs
- XmlSchemaSimpleType.cs
- PageOrientation.cs
- CommandHelper.cs
- WebControlsSection.cs
- UIElementIsland.cs
- ContentControl.cs
- SqlNodeTypeOperators.cs
- SqlServices.cs
- IndicFontClient.cs
- ContainerParaClient.cs
- OpenTypeLayout.cs
- WrappedIUnknown.cs
- PagesSection.cs
- OdbcConnectionPoolProviderInfo.cs
- SendActivityDesigner.cs
- PropertyOverridesTypeEditor.cs
- ProgressBarRenderer.cs
- ManagementClass.cs
- hebrewshape.cs