Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / InternalMappingException.cs / 3 / 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
- GenericEnumConverter.cs
- MatrixCamera.cs
- TaiwanLunisolarCalendar.cs
- ErrorHandler.cs
- RegionData.cs
- _OverlappedAsyncResult.cs
- DataGridTableCollection.cs
- WebPartConnectionsConnectVerb.cs
- ObjectQuery.cs
- MatrixUtil.cs
- ProxyRpc.cs
- WriteableBitmap.cs
- HttpRuntime.cs
- StreamResourceInfo.cs
- PolicyLevel.cs
- CheckoutException.cs
- WindowsPen.cs
- DiscoveryClientBindingElement.cs
- ProviderConnectionPointCollection.cs
- ListControl.cs
- DescendantOverDescendantQuery.cs
- XDRSchema.cs
- ConnectionPool.cs
- ServiceOperationListItemList.cs
- SafeNativeMethodsMilCoreApi.cs
- DbConnectionPool.cs
- Parallel.cs
- MenuItemCollectionEditor.cs
- TraceProvider.cs
- LastQueryOperator.cs
- LogManagementAsyncResult.cs
- FontSizeConverter.cs
- HandlerElement.cs
- Events.cs
- ReachObjectContext.cs
- GridViewRowCollection.cs
- SQLRoleProvider.cs
- WsrmTraceRecord.cs
- ZipFileInfo.cs
- EntityDataSourceStatementEditorForm.cs
- ReadOnlyCollectionBase.cs
- SystemResources.cs
- MultiView.cs
- StorageScalarPropertyMapping.cs
- HttpCookiesSection.cs
- OrCondition.cs
- ContextBase.cs
- RegisteredScript.cs
- PropertyMappingExceptionEventArgs.cs
- HiddenFieldPageStatePersister.cs
- AssemblyUtil.cs
- PermissionSetTriple.cs
- Container.cs
- DataGridRow.cs
- AnalyzedTree.cs
- ScrollBarAutomationPeer.cs
- DigitShape.cs
- KnownTypesHelper.cs
- SqlParameterizer.cs
- HttpContext.cs
- OdbcDataAdapter.cs
- CellParagraph.cs
- Debug.cs
- NavigatingCancelEventArgs.cs
- WebPartPersonalization.cs
- PackageRelationshipCollection.cs
- MailHeaderInfo.cs
- RotateTransform.cs
- COM2EnumConverter.cs
- ImageAttributes.cs
- DropDownList.cs
- CriticalFinalizerObject.cs
- WebZone.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ObjectQuery_EntitySqlExtensions.cs
- XmlSchemaComplexContent.cs
- Hex.cs
- SystemParameters.cs
- CurrentChangedEventManager.cs
- ToolBarPanel.cs
- RightNameExpirationInfoPair.cs
- CompilerGlobalScopeAttribute.cs
- DesignerTextBoxAdapter.cs
- RuleSetReference.cs
- DataGridDetailsPresenter.cs
- Drawing.cs
- COM2ComponentEditor.cs
- BoundField.cs
- QueryStatement.cs
- BrowserCapabilitiesCompiler.cs
- JournalEntry.cs
- IdentityReference.cs
- XmlSerializer.cs
- MethodImplAttribute.cs
- ListViewGroupConverter.cs
- DrawingContextWalker.cs
- RadioButton.cs
- DbConnectionFactory.cs
- BitmapInitialize.cs
- FindCriteria.cs