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
- InputScope.cs
- TypeToken.cs
- GridViewColumn.cs
- NativeMethods.cs
- KeyConverter.cs
- ProtocolsConfigurationHandler.cs
- View.cs
- RecordManager.cs
- RSAPKCS1SignatureFormatter.cs
- Polyline.cs
- Transform3D.cs
- DetailsViewDeleteEventArgs.cs
- CategoryNameCollection.cs
- RectangleGeometry.cs
- SchemaMapping.cs
- MailMessageEventArgs.cs
- RtfFormatStack.cs
- HttpListenerException.cs
- ProfilePropertySettings.cs
- TemplatedWizardStep.cs
- XamlTypeMapperSchemaContext.cs
- ResourceContainer.cs
- DialogBaseForm.cs
- OnOperation.cs
- ClientRuntimeConfig.cs
- ColumnCollection.cs
- InstanceOwner.cs
- DataListComponentEditor.cs
- LongTypeConverter.cs
- ObjectDataSourceChooseTypePanel.cs
- smtpconnection.cs
- SevenBitStream.cs
- WindowsGraphicsCacheManager.cs
- Application.cs
- UnsafeNativeMethods.cs
- Matrix3DValueSerializer.cs
- SaveFileDialog.cs
- ObjectFullSpanRewriter.cs
- BlobPersonalizationState.cs
- WebRequest.cs
- SqlCommand.cs
- RootDesignerSerializerAttribute.cs
- DBNull.cs
- ContextProperty.cs
- EntityWithChangeTrackerStrategy.cs
- BinaryConverter.cs
- FileSystemEventArgs.cs
- InfoCardTraceRecord.cs
- DrawListViewColumnHeaderEventArgs.cs
- ObjectCacheSettings.cs
- Cursor.cs
- FixUpCollection.cs
- CryptoHelper.cs
- DataBoundControlHelper.cs
- UnaryQueryOperator.cs
- EqualityComparer.cs
- Native.cs
- TriState.cs
- LockedBorderGlyph.cs
- ConnectionDemuxer.cs
- PreviewPrintController.cs
- DBConnectionString.cs
- XmlNavigatorStack.cs
- ThreadPoolTaskScheduler.cs
- Root.cs
- ResourceDisplayNameAttribute.cs
- GlobalDataBindingHandler.cs
- PropertyItem.cs
- RbTree.cs
- UInt32Converter.cs
- ToolStripPanel.cs
- GeneralTransform2DTo3DTo2D.cs
- ConfigurationSectionGroup.cs
- Content.cs
- TextDecorationUnitValidation.cs
- _HeaderInfoTable.cs
- ProviderSettingsCollection.cs
- UnescapedXmlDiagnosticData.cs
- GridViewRow.cs
- SpeechAudioFormatInfo.cs
- InstanceContextMode.cs
- TableSectionStyle.cs
- GenericAuthenticationEventArgs.cs
- MetaData.cs
- XmlSerializer.cs
- VerificationAttribute.cs
- RangeContentEnumerator.cs
- DataGridViewLinkColumn.cs
- OdbcConnectionHandle.cs
- ControlBuilderAttribute.cs
- UpDownBase.cs
- CapabilitiesAssignment.cs
- DateBoldEvent.cs
- PreservationFileReader.cs
- PartialTrustHelpers.cs
- BamlLocalizationDictionary.cs
- PropertyGridDesigner.cs
- DataListCommandEventArgs.cs
- ChtmlFormAdapter.cs
- CannotUnloadAppDomainException.cs