Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / InternalMappingException.cs / 1 / 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
- Point3DValueSerializer.cs
- GeneralTransform3DGroup.cs
- ImportedPolicyConversionContext.cs
- SafeJobHandle.cs
- WindowCollection.cs
- _LazyAsyncResult.cs
- ListViewSortEventArgs.cs
- Control.cs
- DataGridCommandEventArgs.cs
- MembershipSection.cs
- InputProviderSite.cs
- ToolStripItemCollection.cs
- ConfigXmlComment.cs
- QilTernary.cs
- LinqDataSourceView.cs
- WindowsTooltip.cs
- Figure.cs
- DataRowView.cs
- XsltLoader.cs
- ComponentEditorForm.cs
- WebUtil.cs
- ListItemCollection.cs
- MemberPath.cs
- ComponentDispatcher.cs
- DirectoryObjectSecurity.cs
- TypeToStringValueConverter.cs
- Stroke2.cs
- PnrpPermission.cs
- DbMetaDataCollectionNames.cs
- ItemList.cs
- SelectionProviderWrapper.cs
- AliasGenerator.cs
- COAUTHIDENTITY.cs
- DataGridViewSelectedRowCollection.cs
- ToolStripStatusLabel.cs
- BamlLocalizer.cs
- SpeechEvent.cs
- SystemTcpConnection.cs
- SqlMethods.cs
- WSSecureConversation.cs
- TransactionScope.cs
- WindowVisualStateTracker.cs
- SqlCacheDependency.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- PersonalizationProviderCollection.cs
- ApplicationInfo.cs
- SmiEventSink_DeferedProcessing.cs
- PointCollection.cs
- DataTableReader.cs
- StreamSecurityUpgradeInitiator.cs
- HtmlInputControl.cs
- FamilyMap.cs
- TableAutomationPeer.cs
- AuthenticationManager.cs
- FamilyTypeface.cs
- Size3D.cs
- IsolatedStorageException.cs
- FilterEventArgs.cs
- XmlReflectionMember.cs
- XmlConvert.cs
- ExpressionBuilderCollection.cs
- hresults.cs
- ModuleElement.cs
- SpinWait.cs
- RedirectionProxy.cs
- LambdaCompiler.Generated.cs
- QilParameter.cs
- ExpressionConverter.cs
- Validator.cs
- RichTextBox.cs
- EmissiveMaterial.cs
- WebBrowser.cs
- XmlSchemaExternal.cs
- SimpleParser.cs
- PublishLicense.cs
- DecimalStorage.cs
- DurableInstanceProvider.cs
- UTF8Encoding.cs
- OledbConnectionStringbuilder.cs
- WebSysDescriptionAttribute.cs
- SmiRecordBuffer.cs
- WebSysDescriptionAttribute.cs
- DependencyPropertyKey.cs
- StringExpressionSet.cs
- Evidence.cs
- ImportCatalogPart.cs
- Int32KeyFrameCollection.cs
- RenderData.cs
- DecoratedNameAttribute.cs
- VScrollProperties.cs
- XmlWhitespace.cs
- SizeLimitedCache.cs
- HwndTarget.cs
- TransformedBitmap.cs
- RowsCopiedEventArgs.cs
- HijriCalendar.cs
- MethodBuilder.cs
- RepeatButtonAutomationPeer.cs
- DataBoundLiteralControl.cs
- _DigestClient.cs