Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DLinq / Dlinq / Exceptions.cs / 1 / Exceptions.cs
using System; using System.Collections.Generic; using System.Data.Linq.Provider; using System.Linq; using System.Diagnostics.CodeAnalysis; namespace System.Data.Linq { ////// DLinq-specific custom exception factory. /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class ChangeConflictException : Exception { public ChangeConflictException() { } public ChangeConflictException(string message) : base(message) { } public ChangeConflictException(string message, Exception innerException) : base(message, innerException) { } } ////// An attempt was made to add an object to the identity cache with a key that is already in use /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class DuplicateKeyException : InvalidOperationException { private object duplicate; public DuplicateKeyException(object duplicate) { this.duplicate = duplicate; } public DuplicateKeyException(object duplicate, string message) : base(message) { this.duplicate = duplicate; } public DuplicateKeyException(object duplicate, string message, Exception innerException) : base(message, innerException) { this.duplicate = duplicate; } ////// The object whose duplicate key caused the exception. /// public object Object { get { return duplicate; } } } ////// An attempt was made to change an FK but the Entity is Loaded /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class ForeignKeyReferenceAlreadyHasValueException : InvalidOperationException { public ForeignKeyReferenceAlreadyHasValueException() { } public ForeignKeyReferenceAlreadyHasValueException(string message) : base(message) { } public ForeignKeyReferenceAlreadyHasValueException(string message, Exception innerException) : base(message, innerException) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Data.Linq.Provider; using System.Linq; using System.Diagnostics.CodeAnalysis; namespace System.Data.Linq { ////// DLinq-specific custom exception factory. /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class ChangeConflictException : Exception { public ChangeConflictException() { } public ChangeConflictException(string message) : base(message) { } public ChangeConflictException(string message, Exception innerException) : base(message, innerException) { } } ////// An attempt was made to add an object to the identity cache with a key that is already in use /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class DuplicateKeyException : InvalidOperationException { private object duplicate; public DuplicateKeyException(object duplicate) { this.duplicate = duplicate; } public DuplicateKeyException(object duplicate, string message) : base(message) { this.duplicate = duplicate; } public DuplicateKeyException(object duplicate, string message, Exception innerException) : base(message, innerException) { this.duplicate = duplicate; } ////// The object whose duplicate key caused the exception. /// public object Object { get { return duplicate; } } } ////// An attempt was made to change an FK but the Entity is Loaded /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class ForeignKeyReferenceAlreadyHasValueException : InvalidOperationException { public ForeignKeyReferenceAlreadyHasValueException() { } public ForeignKeyReferenceAlreadyHasValueException(string message) : base(message) { } public ForeignKeyReferenceAlreadyHasValueException(string message, Exception innerException) : base(message, innerException) { } } } // 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
- SystemFonts.cs
- DefaultHttpHandler.cs
- VirtualPathUtility.cs
- Point4DValueSerializer.cs
- Accessors.cs
- GridViewSortEventArgs.cs
- Stack.cs
- Quad.cs
- PageCanvasSize.cs
- SqlBuffer.cs
- WS2007FederationHttpBindingCollectionElement.cs
- TreeNodeCollection.cs
- Vector.cs
- XamlPoint3DCollectionSerializer.cs
- PageAdapter.cs
- ExceptionAggregator.cs
- SystemBrushes.cs
- XmlLoader.cs
- Grammar.cs
- RightsManagementInformation.cs
- AmbientProperties.cs
- Baml6ConstructorInfo.cs
- ExpressionBuilderContext.cs
- FixedSchema.cs
- TransformedBitmap.cs
- BooleanConverter.cs
- XsltOutput.cs
- RealizationContext.cs
- ActivityDesigner.cs
- ProfessionalColors.cs
- GridSplitterAutomationPeer.cs
- __Filters.cs
- FixedNode.cs
- UnsafeNativeMethods.cs
- Int32Rect.cs
- CapabilitiesAssignment.cs
- GroupItemAutomationPeer.cs
- TokenBasedSetEnumerator.cs
- EntityViewGenerationAttribute.cs
- RowType.cs
- BookmarkScope.cs
- InvokeBase.cs
- LogRecordSequence.cs
- GroupBoxAutomationPeer.cs
- ContextInformation.cs
- WebPartEditorApplyVerb.cs
- ProfilePropertyNameValidator.cs
- TextDpi.cs
- MemoryRecordBuffer.cs
- ToolTipService.cs
- CompiledRegexRunner.cs
- ObjectSpanRewriter.cs
- ChildDocumentBlock.cs
- ResourceSet.cs
- ReplacementText.cs
- IconConverter.cs
- FillBehavior.cs
- SQLDecimalStorage.cs
- WebPartConnectionCollection.cs
- RuleSettings.cs
- FixedFlowMap.cs
- ReadingWritingEntityEventArgs.cs
- SqlDataSourceCommandParser.cs
- PublisherMembershipCondition.cs
- SecureUICommand.cs
- LineServices.cs
- DataGridLinkButton.cs
- TypeExtensionSerializer.cs
- ColorTransform.cs
- SQLBoolean.cs
- RegexGroupCollection.cs
- RectangleHotSpot.cs
- EntitySqlQueryState.cs
- ZoneButton.cs
- ConfigurationValidatorAttribute.cs
- WinEventQueueItem.cs
- RadioButtonAutomationPeer.cs
- TraceListener.cs
- Canvas.cs
- SerializableAttribute.cs
- XmlToDatasetMap.cs
- EditorBrowsableAttribute.cs
- Constraint.cs
- ReadOnlyCollection.cs
- VerifyHashRequest.cs
- XmlComplianceUtil.cs
- SafeProcessHandle.cs
- XmlSchemaImport.cs
- MediaSystem.cs
- WebServiceParameterData.cs
- SecurityDescriptor.cs
- BridgeDataReader.cs
- StatusCommandUI.cs
- BaseDataBoundControl.cs
- RouteCollection.cs
- RandomNumberGenerator.cs
- InternalBase.cs
- XmlSchemaAll.cs
- OpenTypeCommon.cs
- Material.cs