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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SlotInfo.cs
- Codec.cs
- ScriptIgnoreAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- AggregateNode.cs
- DbSourceCommand.cs
- EntityDataSourceStatementEditor.cs
- UdpMessageProperty.cs
- ColorPalette.cs
- SystemWebCachingSectionGroup.cs
- ImageCodecInfo.cs
- TraceSection.cs
- CommonDialog.cs
- peernodeimplementation.cs
- FontClient.cs
- ResourcePermissionBase.cs
- CategoryNameCollection.cs
- UserNameSecurityTokenProvider.cs
- XPathNodeIterator.cs
- ELinqQueryState.cs
- WebPartEditVerb.cs
- OrderByQueryOptionExpression.cs
- HostExecutionContextManager.cs
- GradientStop.cs
- ExpressionEditor.cs
- WebSysDescriptionAttribute.cs
- ObjectViewEntityCollectionData.cs
- XmlQueryTypeFactory.cs
- CodeLinePragma.cs
- BinaryMessageEncodingBindingElement.cs
- PersistenceException.cs
- SvcMapFile.cs
- TableLayoutColumnStyleCollection.cs
- SystemUdpStatistics.cs
- SiteMap.cs
- ClientScriptManager.cs
- CfgParser.cs
- XamlDebuggerXmlReader.cs
- MouseGesture.cs
- DataPagerFieldItem.cs
- ToolBarPanel.cs
- AsyncResult.cs
- MappedMetaModel.cs
- CallbackDebugElement.cs
- Translator.cs
- DisableDpiAwarenessAttribute.cs
- SmiRecordBuffer.cs
- _Events.cs
- SafeNativeMethods.cs
- DataComponentGenerator.cs
- SymbolPair.cs
- DesignerDataColumn.cs
- ExecutionPropertyManager.cs
- InkCanvasFeedbackAdorner.cs
- Validator.cs
- ValidatedControlConverter.cs
- StrongNameUtility.cs
- DesignerRegionCollection.cs
- ContextMarshalException.cs
- HtmlControlPersistable.cs
- RMEnrollmentPage2.cs
- SiteMapPathDesigner.cs
- DataServiceQueryOfT.cs
- MemoryStream.cs
- DefaultAsyncDataDispatcher.cs
- wgx_render.cs
- HtmlTernaryTree.cs
- GroupByQueryOperator.cs
- BoundingRectTracker.cs
- DropAnimation.xaml.cs
- IdentityManager.cs
- log.cs
- RelationshipDetailsRow.cs
- PersonalizableTypeEntry.cs
- SqlDependency.cs
- IntPtr.cs
- WebBrowsableAttribute.cs
- BaseValidator.cs
- DatePickerTextBox.cs
- LicenseException.cs
- SchemaImporterExtensionsSection.cs
- Parameter.cs
- RelationshipConstraintValidator.cs
- ZipIOModeEnforcingStream.cs
- TextEditorLists.cs
- RoleGroupCollection.cs
- SafePEFileHandle.cs
- Scalars.cs
- TimerTable.cs
- OnOperation.cs
- X509SecurityTokenProvider.cs
- FileDetails.cs
- Pair.cs
- BamlCollectionHolder.cs
- EntityDesignerBuildProvider.cs
- HMAC.cs
- SqlTriggerContext.cs
- GetWinFXPath.cs
- ResourceDescriptionAttribute.cs
- UnknownBitmapDecoder.cs