Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / InternalMappingException.cs / 1305376 / InternalMappingException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- XmlHierarchyData.cs
- EntityTemplateUserControl.cs
- DirtyTextRange.cs
- NativeCppClassAttribute.cs
- WindowsListViewGroupSubsetLink.cs
- HttpHeaderCollection.cs
- BuildManager.cs
- ReliableReplySessionChannel.cs
- ThicknessAnimationUsingKeyFrames.cs
- ProfileBuildProvider.cs
- InProcStateClientManager.cs
- LocalBuilder.cs
- _emptywebproxy.cs
- XmlKeywords.cs
- IndexerNameAttribute.cs
- HitTestFilterBehavior.cs
- SuppressMergeCheckAttribute.cs
- ClientBuildManagerCallback.cs
- Composition.cs
- MemoryPressure.cs
- ProxyAttribute.cs
- StrongNameUtility.cs
- DataGridRowHeaderAutomationPeer.cs
- CachedBitmap.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- URLIdentityPermission.cs
- GPRECT.cs
- ErrorWebPart.cs
- StorageBasedPackageProperties.cs
- WebPartConnectionsCancelEventArgs.cs
- PropertiesTab.cs
- EndPoint.cs
- BroadcastEventHelper.cs
- InternalsVisibleToAttribute.cs
- IsolatedStorage.cs
- ResourceContainer.cs
- ApplicationSecurityInfo.cs
- BigInt.cs
- DataServiceExpressionVisitor.cs
- XmlSchemaComplexContentRestriction.cs
- AnnotationObservableCollection.cs
- CompoundFileReference.cs
- BackStopAuthenticationModule.cs
- MultiAsyncResult.cs
- PerformanceCounters.cs
- Transform.cs
- UserPersonalizationStateInfo.cs
- GB18030Encoding.cs
- CalendarBlackoutDatesCollection.cs
- ScrollChrome.cs
- FunctionQuery.cs
- XhtmlBasicLiteralTextAdapter.cs
- QuaternionAnimation.cs
- MetafileHeader.cs
- ToolStripItemRenderEventArgs.cs
- BamlResourceSerializer.cs
- XmlSchemaExporter.cs
- ClientOptions.cs
- TimeoutValidationAttribute.cs
- UIElement3D.cs
- FtpCachePolicyElement.cs
- MenuItemBinding.cs
- Decorator.cs
- TextLineResult.cs
- FaultReason.cs
- PasswordBoxAutomationPeer.cs
- Point3DKeyFrameCollection.cs
- TextFormatterHost.cs
- ServiceNameElement.cs
- LinkDesigner.cs
- XPathAncestorQuery.cs
- UrlMappingCollection.cs
- UserControlAutomationPeer.cs
- ToolboxItemFilterAttribute.cs
- RawStylusInputCustomDataList.cs
- XomlCompilerResults.cs
- InstanceDescriptor.cs
- HwndSourceParameters.cs
- CompilerTypeWithParams.cs
- PropertyGridView.cs
- FormatterServices.cs
- UriTemplateEquivalenceComparer.cs
- ExpressionReplacer.cs
- PointCollectionConverter.cs
- SecurityBindingElement.cs
- EncoderExceptionFallback.cs
- XmlNavigatorStack.cs
- HtmlTableCellCollection.cs
- CatalogPart.cs
- BitmapPalette.cs
- ColumnWidthChangedEvent.cs
- Ipv6Element.cs
- TdsRecordBufferSetter.cs
- _SslState.cs
- HashCodeCombiner.cs
- VisualStyleRenderer.cs
- StatusCommandUI.cs
- TextTreeExtractElementUndoUnit.cs
- DispatchWrapper.cs
- ToolBarPanel.cs