Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / InternalMappingException.cs / 3 / InternalMappingException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System.Data.Common.Utils; using System.Data.Mapping.ViewGeneration.Structures; using System.Runtime.Serialization; namespace System.Data { ////// Mapping exception class. Note that this class has state - so if you change even /// its internals, it can be a breaking change /// [Serializable] internal class InternalMappingException : EntityException { // effects: constructor with default message #region Constructors ////// default constructor /// internal InternalMappingException() // required ctor : base() { } ////// default constructor /// /// localized error message [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] // required CTOR for exceptions. internal InternalMappingException(string message) // required ctor : base(message) { } ////// constructor /// /// localized error message /// inner exception [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] // required CTOR for exceptions. internal InternalMappingException(string message, Exception innerException) // required ctor : base(message, innerException) { } ////// constructor /// /// /// protected InternalMappingException(SerializationInfo info, StreamingContext context) : base(info, context) { } // effects: constructor that allows a log internal InternalMappingException(string message, ErrorLog errorLog) : base(message) { EntityUtil.CheckArgumentNull(errorLog, "errorLog"); m_errorLog = errorLog; } // effects: constructor that allows single mapping error internal InternalMappingException(string message, ErrorLog.Record record) : base(message) { EntityUtil.CheckArgumentNull(record, "record"); m_errorLog = new ErrorLog(); m_errorLog.AddEntry(record); } #endregion #region Fields // Keep track of mapping errors that we want to give to the // user in one shot private ErrorLog m_errorLog; #endregion #region Properties ////// Returns the inner exceptions stored in this /// internal ErrorLog ErrorLog { get { return m_errorLog; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....], [....] //--------------------------------------------------------------------- using System.Data.Common.Utils; using System.Data.Mapping.ViewGeneration.Structures; using System.Runtime.Serialization; namespace System.Data { ////// Mapping exception class. Note that this class has state - so if you change even /// its internals, it can be a breaking change /// [Serializable] internal class InternalMappingException : EntityException { // effects: constructor with default message #region Constructors ////// default constructor /// internal InternalMappingException() // required ctor : base() { } ////// default constructor /// /// localized error message [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] // required CTOR for exceptions. internal InternalMappingException(string message) // required ctor : base(message) { } ////// constructor /// /// localized error message /// inner exception [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] // required CTOR for exceptions. internal InternalMappingException(string message, Exception innerException) // required ctor : base(message, innerException) { } ////// constructor /// /// /// protected InternalMappingException(SerializationInfo info, StreamingContext context) : base(info, context) { } // effects: constructor that allows a log internal InternalMappingException(string message, ErrorLog errorLog) : base(message) { EntityUtil.CheckArgumentNull(errorLog, "errorLog"); m_errorLog = errorLog; } // effects: constructor that allows single mapping error internal InternalMappingException(string message, ErrorLog.Record record) : base(message) { EntityUtil.CheckArgumentNull(record, "record"); m_errorLog = new ErrorLog(); m_errorLog.AddEntry(record); } #endregion #region Fields // Keep track of mapping errors that we want to give to the // user in one shot private ErrorLog m_errorLog; #endregion #region Properties ////// Returns the inner exceptions stored in this /// internal ErrorLog ErrorLog { get { return m_errorLog; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MouseButtonEventArgs.cs
- Claim.cs
- ToolStripRendererSwitcher.cs
- GifBitmapEncoder.cs
- KeyInstance.cs
- SingleObjectCollection.cs
- EncoderReplacementFallback.cs
- AssociationSetEnd.cs
- CompositeDataBoundControl.cs
- WebControl.cs
- RefreshPropertiesAttribute.cs
- ErrorStyle.cs
- DataExpression.cs
- QilValidationVisitor.cs
- X509CertificateCollection.cs
- Baml2006KnownTypes.cs
- HttpWebResponse.cs
- SqlMultiplexer.cs
- TypeForwardedToAttribute.cs
- MarkedHighlightComponent.cs
- BinaryFormatterWriter.cs
- PropertyValueUIItem.cs
- ThumbAutomationPeer.cs
- OrderToken.cs
- Query.cs
- Barrier.cs
- ThreadPool.cs
- MasterPageParser.cs
- EnumerableCollectionView.cs
- DebuggerService.cs
- ChangeNode.cs
- LambdaCompiler.Logical.cs
- Grant.cs
- TextBlockAutomationPeer.cs
- UpdateExpressionVisitor.cs
- VectorCollectionConverter.cs
- MarkupExtensionReturnTypeAttribute.cs
- PersonalizablePropertyEntry.cs
- SqlExpressionNullability.cs
- Timeline.cs
- GenericsInstances.cs
- PassportPrincipal.cs
- CompileLiteralTextParser.cs
- Serializer.cs
- LocalizableResourceBuilder.cs
- TagMapInfo.cs
- GridViewHeaderRowPresenter.cs
- FileEnumerator.cs
- StreamAsIStream.cs
- JoinSymbol.cs
- BaseDataBoundControl.cs
- StyleReferenceConverter.cs
- TerminatorSinks.cs
- ChannelServices.cs
- BuildProviderUtils.cs
- CompositeFontInfo.cs
- AnchoredBlock.cs
- InstanceOwnerQueryResult.cs
- TriggerCollection.cs
- QilSortKey.cs
- ExecutionEngineException.cs
- DoubleLinkListEnumerator.cs
- ErrorRuntimeConfig.cs
- EmptyControlCollection.cs
- Evaluator.cs
- BitVec.cs
- ProcessModelInfo.cs
- UnionCodeGroup.cs
- AttachedPropertyMethodSelector.cs
- SoapReflector.cs
- SoapClientProtocol.cs
- LocationSectionRecord.cs
- JsonEncodingStreamWrapper.cs
- ExpressionNode.cs
- CharacterBuffer.cs
- EnumConverter.cs
- MetadataSerializer.cs
- EncodingNLS.cs
- IdentityNotMappedException.cs
- EventSinkHelperWriter.cs
- MultipleViewPattern.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TextRange.cs
- HelpHtmlBuilder.cs
- complextypematerializer.cs
- CachedPathData.cs
- RegistryPermission.cs
- TableProviderWrapper.cs
- TextEffectCollection.cs
- Baml6Assembly.cs
- SrgsNameValueTag.cs
- Highlights.cs
- BaseDataListPage.cs
- Cursor.cs
- CharEntityEncoderFallback.cs
- sqlser.cs
- ThicknessKeyFrameCollection.cs
- DeclarativeCatalogPart.cs
- formatter.cs
- XmlUtf8RawTextWriter.cs