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
- DataListItemEventArgs.cs
- Permission.cs
- DesignTimeDataBinding.cs
- TreeViewCancelEvent.cs
- SmtpFailedRecipientException.cs
- RenderData.cs
- SqlBooleanMismatchVisitor.cs
- TypeUtil.cs
- ClockController.cs
- ParserExtension.cs
- Interlocked.cs
- WebException.cs
- ChangeDirector.cs
- ContactManager.cs
- SoapTypeAttribute.cs
- CorrelationResolver.cs
- HostingEnvironmentSection.cs
- DataTableExtensions.cs
- AmbientProperties.cs
- Simplifier.cs
- UrlMappingCollection.cs
- HtmlControlPersistable.cs
- SqlUnionizer.cs
- WindowsTab.cs
- InvalidPropValue.cs
- FixedBufferAttribute.cs
- CroppedBitmap.cs
- CanExecuteRoutedEventArgs.cs
- ResourceAttributes.cs
- MaskedTextBox.cs
- PageCache.cs
- ModelChangedEventArgsImpl.cs
- SystemWebCachingSectionGroup.cs
- UnhandledExceptionEventArgs.cs
- TreeNodeCollection.cs
- DPAPIProtectedConfigurationProvider.cs
- EncryptedType.cs
- CombinedGeometry.cs
- BidirectionalDictionary.cs
- SqlDataSourceStatusEventArgs.cs
- SecureUICommand.cs
- TypedDatasetGenerator.cs
- BufferedReadStream.cs
- ContextMenuAutomationPeer.cs
- Helpers.cs
- ToolTipAutomationPeer.cs
- MenuItemStyleCollection.cs
- PixelShader.cs
- ButtonColumn.cs
- DataTableMappingCollection.cs
- SendContent.cs
- DescriptionAttribute.cs
- SystemIPGlobalProperties.cs
- QuestionEventArgs.cs
- GeneralTransform3DCollection.cs
- JournalNavigationScope.cs
- CorePropertiesFilter.cs
- DefaultAsyncDataDispatcher.cs
- InheritedPropertyChangedEventArgs.cs
- HtmlTernaryTree.cs
- WebPartMenuStyle.cs
- SiteMapSection.cs
- RequestCachePolicyConverter.cs
- TextEditorThreadLocalStore.cs
- KeySpline.cs
- Model3D.cs
- RegexWorker.cs
- ExcCanonicalXml.cs
- ITextView.cs
- FactoryMaker.cs
- KeyGestureConverter.cs
- GroupBoxRenderer.cs
- WebMessageEncoderFactory.cs
- ImageAnimator.cs
- NameTable.cs
- Light.cs
- DataGridViewAccessibleObject.cs
- ObjectMaterializedEventArgs.cs
- assertwrapper.cs
- Lasso.cs
- GenericIdentity.cs
- TableLayoutCellPaintEventArgs.cs
- RenderDataDrawingContext.cs
- TextDecorationCollection.cs
- PingReply.cs
- MaskDescriptor.cs
- BrowserDefinition.cs
- CoreSwitches.cs
- ActivityXamlServices.cs
- _ConnectStream.cs
- DisplayNameAttribute.cs
- XamlBuildProvider.cs
- ObjRef.cs
- TextTreeTextNode.cs
- PersonalizationAdministration.cs
- MimeObjectFactory.cs
- Cursors.cs
- Comparer.cs
- IOThreadScheduler.cs
- PageStatePersister.cs