Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextBlock.cs
- Screen.cs
- VideoDrawing.cs
- ListSortDescriptionCollection.cs
- LogStore.cs
- Columns.cs
- ApplicationBuildProvider.cs
- ExpressionTextBoxAutomationPeer.cs
- FontFamily.cs
- _NTAuthentication.cs
- DependencyPropertyChangedEventArgs.cs
- DeflateStream.cs
- PreviewKeyDownEventArgs.cs
- XPathQilFactory.cs
- MemoryMappedView.cs
- CatalogZoneBase.cs
- ArcSegment.cs
- InkSerializer.cs
- InstanceCreationEditor.cs
- ListViewItemCollectionEditor.cs
- FrameworkRichTextComposition.cs
- ArgumentException.cs
- ValueProviderWrapper.cs
- ManipulationPivot.cs
- TextFormattingConverter.cs
- NavigationHelper.cs
- IIS7WorkerRequest.cs
- EdmToObjectNamespaceMap.cs
- TimeZone.cs
- XmlHierarchyData.cs
- MimeBasePart.cs
- GetWinFXPath.cs
- ExtensionSimplifierMarkupObject.cs
- CFGGrammar.cs
- SqlClientPermission.cs
- MailSettingsSection.cs
- ObjectDesignerDataSourceView.cs
- InstancePersistenceEvent.cs
- FormatSettings.cs
- ToolBarButton.cs
- ExtensionFile.cs
- safesecurityhelperavalon.cs
- Trustee.cs
- CodeObject.cs
- ManagedWndProcTracker.cs
- BitVec.cs
- clipboard.cs
- CodeExpressionStatement.cs
- ComponentRenameEvent.cs
- BlockCollection.cs
- DrawingState.cs
- DataSourceView.cs
- ApplicationServiceManager.cs
- MethodCallTranslator.cs
- ObjectStateManagerMetadata.cs
- XmlSortKey.cs
- DbSourceParameterCollection.cs
- XmlDocumentFragment.cs
- TextModifierScope.cs
- ClientBuildManager.cs
- HotCommands.cs
- PreviewKeyDownEventArgs.cs
- Cell.cs
- ManagementBaseObject.cs
- SafeRegistryHandle.cs
- WebPartDescription.cs
- DateTimeFormatInfo.cs
- Compilation.cs
- WeakEventTable.cs
- DataGridViewCheckBoxColumn.cs
- AnnotationStore.cs
- XmlWrappingWriter.cs
- ScrollBar.cs
- ControlPropertyNameConverter.cs
- SqlFacetAttribute.cs
- DataGridItemCollection.cs
- LogSwitch.cs
- PropertyChangedEventArgs.cs
- WindowsBrush.cs
- WebControlAdapter.cs
- MouseEventArgs.cs
- StateMachine.cs
- DecimalConstantAttribute.cs
- SoapHelper.cs
- SelectionRangeConverter.cs
- AsyncResult.cs
- GetUserPreferenceRequest.cs
- SynchronizationContext.cs
- PersistenceTypeAttribute.cs
- ListChangedEventArgs.cs
- ADConnectionHelper.cs
- QuaternionKeyFrameCollection.cs
- BrowserDefinitionCollection.cs
- CodeDelegateInvokeExpression.cs
- WebScriptMetadataFormatter.cs
- ButtonBaseAutomationPeer.cs
- DataControlField.cs
- CodeSubDirectoriesCollection.cs
- ChildTable.cs
- InvalidProgramException.cs