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
- FloaterBaseParaClient.cs
- LoginView.cs
- XmlSerializer.cs
- ObjectViewFactory.cs
- CodeDirectionExpression.cs
- PropertyTab.cs
- PageTheme.cs
- WindowHelperService.cs
- PrinterUnitConvert.cs
- HandlerBase.cs
- MenuStrip.cs
- PropertyEmitterBase.cs
- MatrixAnimationBase.cs
- LineVisual.cs
- OrCondition.cs
- ContentTextAutomationPeer.cs
- SqlGenerator.cs
- WindowsGraphicsWrapper.cs
- Object.cs
- InvalidComObjectException.cs
- DesignTimeParseData.cs
- HttpServerVarsCollection.cs
- CodeAttachEventStatement.cs
- SQLDateTimeStorage.cs
- BaseValidator.cs
- TraceContextEventArgs.cs
- FunctionNode.cs
- GroupBox.cs
- QfeChecker.cs
- path.cs
- DataControlPagerLinkButton.cs
- NumericExpr.cs
- ListViewGroupConverter.cs
- RuntimeEnvironment.cs
- ValidationRule.cs
- OracleNumber.cs
- TemplateInstanceAttribute.cs
- GCHandleCookieTable.cs
- PenCursorManager.cs
- _NetworkingPerfCounters.cs
- HighlightVisual.cs
- TableAutomationPeer.cs
- StrokeCollection.cs
- DecimalFormatter.cs
- PagesChangedEventArgs.cs
- GroupBox.cs
- XmlDocument.cs
- TextSelectionProcessor.cs
- ExpressionBuilderCollection.cs
- ACL.cs
- BitmapEffectState.cs
- DelegatingHeader.cs
- ValuePattern.cs
- DependencyPropertyAttribute.cs
- LinkConverter.cs
- DockPanel.cs
- TextFragmentEngine.cs
- DesignerVerbCollection.cs
- GridItemPatternIdentifiers.cs
- CatchBlock.cs
- MtomMessageEncoder.cs
- SignatureDescription.cs
- RowVisual.cs
- TypeUnloadedException.cs
- KeyManager.cs
- Scalars.cs
- IdentityManager.cs
- WebPart.cs
- AffineTransform3D.cs
- ListBoxItem.cs
- figurelength.cs
- Queue.cs
- AuthenticatingEventArgs.cs
- Ops.cs
- XPathNodeIterator.cs
- QueryCacheKey.cs
- CleanUpVirtualizedItemEventArgs.cs
- UnsafeNativeMethods.cs
- CellIdBoolean.cs
- EmptyReadOnlyDictionaryInternal.cs
- StateMachine.cs
- Asn1IntegerConverter.cs
- CodeTypeMemberCollection.cs
- XmlDataCollection.cs
- QueryActivatableWorkflowsCommand.cs
- SendKeys.cs
- Section.cs
- Closure.cs
- SafeArrayRankMismatchException.cs
- QueryCacheManager.cs
- StateChangeEvent.cs
- WeakEventManager.cs
- ChtmlPhoneCallAdapter.cs
- MenuItemStyleCollection.cs
- RefreshEventArgs.cs
- PrimitiveXmlSerializers.cs
- DiffuseMaterial.cs
- PropertyInfoSet.cs
- DBNull.cs
- QueryGenerator.cs