Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / InternalMappingException.cs / 2 / 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
- ApplySecurityAndSendAsyncResult.cs
- ConsumerConnectionPointCollection.cs
- SettingsPropertyWrongTypeException.cs
- RegistryKey.cs
- XmlQueryTypeFactory.cs
- SqlFormatter.cs
- PtsContext.cs
- ComponentChangingEvent.cs
- Rules.cs
- DiscoveryClientChannelBase.cs
- ErrorRuntimeConfig.cs
- UDPClient.cs
- EventBuilder.cs
- WhitespaceRuleReader.cs
- ResetableIterator.cs
- Content.cs
- IsolatedStorageSecurityState.cs
- XmlSchemaSimpleContentRestriction.cs
- HMACMD5.cs
- EngineSite.cs
- DecimalAverageAggregationOperator.cs
- DocumentSequence.cs
- GraphicsContainer.cs
- StringKeyFrameCollection.cs
- Byte.cs
- SqlInternalConnection.cs
- DesignerSerializationOptionsAttribute.cs
- ToolTip.cs
- SelectorAutomationPeer.cs
- CollectionsUtil.cs
- TextSegment.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TabItemWrapperAutomationPeer.cs
- XmlUtil.cs
- FunctionDescription.cs
- RightsController.cs
- CharEntityEncoderFallback.cs
- NameSpaceExtractor.cs
- ReadingWritingEntityEventArgs.cs
- XmlIlGenerator.cs
- AnnotationResourceChangedEventArgs.cs
- GuidTagList.cs
- JsonReader.cs
- OdbcConnectionHandle.cs
- InkCanvasInnerCanvas.cs
- DefaultClaimSet.cs
- SelectedGridItemChangedEvent.cs
- GPPOINT.cs
- RelatedImageListAttribute.cs
- ObservableDictionary.cs
- ContainerParaClient.cs
- RadioButton.cs
- Int32Converter.cs
- CellIdBoolean.cs
- SmtpDigestAuthenticationModule.cs
- SqlAggregateChecker.cs
- ConstructorExpr.cs
- ResourceSet.cs
- HtmlShim.cs
- MetricEntry.cs
- xmlglyphRunInfo.cs
- NetworkInformationPermission.cs
- ResourceContainer.cs
- RawStylusInputCustomData.cs
- peersecurityelement.cs
- StreamReader.cs
- ServiceHttpHandlerFactory.cs
- AssemblyUtil.cs
- InputLangChangeEvent.cs
- Vector3DValueSerializer.cs
- CommonProperties.cs
- ItemContainerGenerator.cs
- Mapping.cs
- StringStorage.cs
- SchemaImporter.cs
- ConfigXmlElement.cs
- OdbcParameter.cs
- DelegatedStream.cs
- XmlAttributeAttribute.cs
- ZipIOExtraFieldPaddingElement.cs
- AssemblyCache.cs
- AssertFilter.cs
- Fx.cs
- ExportFileRequest.cs
- TypeDescriptionProviderAttribute.cs
- BitmapCacheBrush.cs
- HttpResponseHeader.cs
- DisplayMemberTemplateSelector.cs
- ReferenceEqualityComparer.cs
- DesignRelationCollection.cs
- DataSourceComponent.cs
- UserMapPath.cs
- RedirectionProxy.cs
- ToolStripPanelSelectionGlyph.cs
- RC2CryptoServiceProvider.cs
- InstanceCreationEditor.cs
- SectionXmlInfo.cs
- Exceptions.cs
- CultureTableRecord.cs
- SiteOfOriginPart.cs