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
- TemplateModeChangedEventArgs.cs
- DataSourceCache.cs
- OperatorExpressions.cs
- FormsIdentity.cs
- ProfileGroupSettingsCollection.cs
- PeerTransportSecurityElement.cs
- SecurityContextCookieSerializer.cs
- sitestring.cs
- PropertyGridView.cs
- WrappedDispatcherException.cs
- DecimalAnimationBase.cs
- LexicalChunk.cs
- TimelineClockCollection.cs
- TypeElement.cs
- DataGridCaption.cs
- ErrorFormatter.cs
- UrlRoutingModule.cs
- CanonicalFormWriter.cs
- PageRequestManager.cs
- GeneralTransform3DTo2DTo3D.cs
- ActiveDesignSurfaceEvent.cs
- DebugViewWriter.cs
- Scripts.cs
- UrlRoutingHandler.cs
- _emptywebproxy.cs
- StorageRoot.cs
- ScriptingJsonSerializationSection.cs
- GenericWebPart.cs
- DropDownList.cs
- RawMouseInputReport.cs
- TextParagraphProperties.cs
- CodeChecksumPragma.cs
- AttributeTable.cs
- DynamicFilter.cs
- CodeGotoStatement.cs
- Attachment.cs
- TextFormatter.cs
- securitycriticaldataformultiplegetandset.cs
- PathSegment.cs
- Configuration.cs
- MobileListItem.cs
- PropertyEmitter.cs
- TextParaLineResult.cs
- ObjectStorage.cs
- MouseWheelEventArgs.cs
- RelationshipManager.cs
- WindowAutomationPeer.cs
- Walker.cs
- BackgroundWorker.cs
- ColorContext.cs
- DesignerCategoryAttribute.cs
- ListenerSessionConnection.cs
- UTF7Encoding.cs
- unitconverter.cs
- StringHandle.cs
- ConfigXmlSignificantWhitespace.cs
- XPathDocumentIterator.cs
- SerializationException.cs
- UInt16Storage.cs
- CompositeFontInfo.cs
- ConstantSlot.cs
- SqlFunctions.cs
- SessionParameter.cs
- DataTableReaderListener.cs
- SerializableAttribute.cs
- XmlToDatasetMap.cs
- WindowVisualStateTracker.cs
- ScriptResourceInfo.cs
- ObjectConverter.cs
- HttpListenerPrefixCollection.cs
- HttpClientCertificate.cs
- CodeDomConfigurationHandler.cs
- ProfilePropertySettings.cs
- LOSFormatter.cs
- QilNode.cs
- OdbcParameter.cs
- DrawingCollection.cs
- returneventsaver.cs
- CompiledXpathExpr.cs
- WebConfigurationHost.cs
- DataBinding.cs
- HitTestResult.cs
- FrameworkReadOnlyPropertyMetadata.cs
- FunctionUpdateCommand.cs
- HandlerBase.cs
- StrongNameUtility.cs
- X509SecurityToken.cs
- StackBuilderSink.cs
- safelink.cs
- FormViewInsertEventArgs.cs
- RegexWorker.cs
- DataGridViewUtilities.cs
- SplitterEvent.cs
- PackWebRequestFactory.cs
- CodeMemberMethod.cs
- ChannelBuilder.cs
- TypeDependencyAttribute.cs
- XmlQuerySequence.cs
- FlowNode.cs
- PropertyBuilder.cs