Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemoteWebConfigurationHost.cs
- ToolStripItemTextRenderEventArgs.cs
- ComponentEditorForm.cs
- SettingsBindableAttribute.cs
- EventDescriptor.cs
- EdmScalarPropertyAttribute.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SiteMap.cs
- ImageCodecInfoPrivate.cs
- ToolStripSeparator.cs
- Debug.cs
- FixedTextBuilder.cs
- PageOrientation.cs
- MetabaseReader.cs
- XmlSchemaGroup.cs
- SelfIssuedTokenFactoryCredential.cs
- ImageAttributes.cs
- ShutDownListener.cs
- Inflater.cs
- SpoolingTaskBase.cs
- PtsContext.cs
- Timeline.cs
- PeerDuplexChannel.cs
- Rect3DConverter.cs
- CreateUserWizardAutoFormat.cs
- File.cs
- ToolstripProfessionalRenderer.cs
- SchemaMerger.cs
- WindowsAuthenticationEventArgs.cs
- Win32.cs
- UserPreferenceChangedEventArgs.cs
- GetKeyedHashRequest.cs
- AuthStoreRoleProvider.cs
- DesignTimeTemplateParser.cs
- ConfigurationFileMap.cs
- ElementMarkupObject.cs
- COM2IProvidePropertyBuilderHandler.cs
- AssemblySettingAttributes.cs
- COM2ComponentEditor.cs
- IndexerNameAttribute.cs
- RpcCryptoRequest.cs
- TemplatePagerField.cs
- TypeSystem.cs
- SafeSecurityHandles.cs
- XslAstAnalyzer.cs
- CryptoApi.cs
- DelayLoadType.cs
- JoinTreeSlot.cs
- SchemaSetCompiler.cs
- StaticTextPointer.cs
- LOSFormatter.cs
- BitmapEffectGroup.cs
- ThreadAttributes.cs
- Renderer.cs
- QuadraticBezierSegment.cs
- BooleanKeyFrameCollection.cs
- CompModSwitches.cs
- MouseOverProperty.cs
- XhtmlBasicListAdapter.cs
- EditorPart.cs
- ColorConverter.cs
- MetaTable.cs
- Command.cs
- MissingMethodException.cs
- BaseParaClient.cs
- DataControlButton.cs
- EventDescriptor.cs
- RemoveStoryboard.cs
- DataGridViewCellEventArgs.cs
- WorkflowInstanceExtensionCollection.cs
- TypeListConverter.cs
- HelpEvent.cs
- SingleKeyFrameCollection.cs
- AlignmentYValidation.cs
- SeverityFilter.cs
- RegexCapture.cs
- WpfKnownType.cs
- ProtocolsConfigurationHandler.cs
- SafeArchiveContext.cs
- ContentPosition.cs
- Point4D.cs
- FrameworkElementFactoryMarkupObject.cs
- ObjectTag.cs
- DPTypeDescriptorContext.cs
- SweepDirectionValidation.cs
- FileClassifier.cs
- TypeForwardedToAttribute.cs
- recordstate.cs
- DependencyPropertyAttribute.cs
- OdbcConnectionOpen.cs
- EntityClientCacheKey.cs
- IBuiltInEvidence.cs
- Resources.Designer.cs
- PropertyCondition.cs
- EntityContainerRelationshipSet.cs
- AssemblyHash.cs
- InternalEnumValidator.cs
- Dispatcher.cs
- WebServiceEnumData.cs
- ExpandCollapseProviderWrapper.cs