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
- EmptyEnumerable.cs
- MissingMethodException.cs
- SoapSchemaExporter.cs
- PlanCompiler.cs
- Setter.cs
- EdmToObjectNamespaceMap.cs
- DoubleAnimationUsingPath.cs
- HttpConfigurationContext.cs
- RtfControlWordInfo.cs
- DataListItemCollection.cs
- ContentOperations.cs
- KeySplineConverter.cs
- StructuredType.cs
- SafeNativeMethodsCLR.cs
- CodeTryCatchFinallyStatement.cs
- ComplexLine.cs
- SqlDataSourceCommandParser.cs
- GPRECT.cs
- Int32AnimationBase.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- HtmlHistory.cs
- PeerOutputChannel.cs
- CompModSwitches.cs
- SuppressIldasmAttribute.cs
- SurrogateSelector.cs
- Calendar.cs
- HMACSHA384.cs
- HitTestDrawingContextWalker.cs
- DirectionalAction.cs
- RtfNavigator.cs
- SecurityHelper.cs
- Grant.cs
- ApplicationDirectoryMembershipCondition.cs
- DataGridViewRowEventArgs.cs
- GPStream.cs
- StateItem.cs
- FixedSOMLineCollection.cs
- ViewRendering.cs
- DataTableReader.cs
- MexTcpBindingElement.cs
- safex509handles.cs
- StrokeNodeData.cs
- CounterSampleCalculator.cs
- AppDomainFactory.cs
- TimersDescriptionAttribute.cs
- PermissionListSet.cs
- Int16AnimationUsingKeyFrames.cs
- Effect.cs
- ProxyGenerator.cs
- ConfigurationStrings.cs
- _Connection.cs
- GridViewUpdateEventArgs.cs
- WebRequestModuleElement.cs
- ArrayList.cs
- Sequence.cs
- LineServices.cs
- SingleResultAttribute.cs
- ActivitiesCollection.cs
- DbInsertCommandTree.cs
- HandlerFactoryCache.cs
- SinglePageViewer.cs
- CustomAttributeBuilder.cs
- TabControlEvent.cs
- RemoteArgument.cs
- AlphabeticalEnumConverter.cs
- ColorInterpolationModeValidation.cs
- GlyphRunDrawing.cs
- SerializerWriterEventHandlers.cs
- CustomPopupPlacement.cs
- DataGridViewSelectedColumnCollection.cs
- BufferModeSettings.cs
- Expander.cs
- OutputCacheProfileCollection.cs
- ImageButton.cs
- TransactionFlowAttribute.cs
- DbSourceCommand.cs
- ActivityStatusChangeEventArgs.cs
- XPathDocument.cs
- RevocationPoint.cs
- CSharpCodeProvider.cs
- complextypematerializer.cs
- MetabaseSettingsIis7.cs
- TypeTypeConverter.cs
- FormParameter.cs
- UpdatePanel.cs
- DataGridCommandEventArgs.cs
- SqlTrackingQuery.cs
- ServerIdentity.cs
- ResourceContainer.cs
- XDeferredAxisSource.cs
- PlatformNotSupportedException.cs
- SqlCacheDependency.cs
- DeploymentExceptionMapper.cs
- IdentityManager.cs
- HandlerMappingMemo.cs
- XmlHelper.cs
- TextTreeRootTextBlock.cs
- StrokeNode.cs
- ServiceElement.cs
- SiteMapNodeCollection.cs