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
- UniqueContractNameValidationBehavior.cs
- GridViewRow.cs
- ValidationSummary.cs
- InternalConfigHost.cs
- PowerStatus.cs
- IndependentlyAnimatedPropertyMetadata.cs
- HttpCacheParams.cs
- DocumentViewer.cs
- PersistenceTypeAttribute.cs
- IsolatedStorageFilePermission.cs
- TypeConverters.cs
- TemplateBindingExtensionConverter.cs
- Vector3DConverter.cs
- DispatcherExceptionFilterEventArgs.cs
- HtmlFormWrapper.cs
- DataView.cs
- DataServiceBuildProvider.cs
- ClientReliableChannelBinder.cs
- SmtpMail.cs
- SmiXetterAccessMap.cs
- PagerSettings.cs
- PageParser.cs
- PointAnimationUsingPath.cs
- AuthenticationService.cs
- ForwardPositionQuery.cs
- FormViewDeletedEventArgs.cs
- StrongName.cs
- TextAutomationPeer.cs
- Function.cs
- XmlDataSourceView.cs
- Visual3D.cs
- ObjectManager.cs
- WebBodyFormatMessageProperty.cs
- DetailsViewInsertedEventArgs.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SimpleType.cs
- SimpleLine.cs
- TimersDescriptionAttribute.cs
- Utils.cs
- ConnectorDragDropGlyph.cs
- ColumnResizeUndoUnit.cs
- HttpResponse.cs
- HttpCapabilitiesSectionHandler.cs
- WSHttpSecurityElement.cs
- SafeEventLogWriteHandle.cs
- StateElement.cs
- ModuleConfigurationInfo.cs
- FutureFactory.cs
- PaintValueEventArgs.cs
- ArgumentOutOfRangeException.cs
- ListViewGroup.cs
- RawStylusInputReport.cs
- Splitter.cs
- OwnerDrawPropertyBag.cs
- PropertySourceInfo.cs
- CatalogZoneBase.cs
- CodeMemberEvent.cs
- NativeDirectoryServicesQueryAPIs.cs
- DataGridRow.cs
- NavigationProperty.cs
- SessionViewState.cs
- CallbackHandler.cs
- ProxyAttribute.cs
- TextHidden.cs
- SQLResource.cs
- QuaternionAnimationBase.cs
- ResourceReferenceExpression.cs
- AnnotationAuthorChangedEventArgs.cs
- ExpressionLexer.cs
- BindingListCollectionView.cs
- ThreadStateException.cs
- XmlCharType.cs
- PrimitiveXmlSerializers.cs
- ZipIOExtraFieldPaddingElement.cs
- OuterGlowBitmapEffect.cs
- Emitter.cs
- SQLDateTimeStorage.cs
- PropertyMapper.cs
- XamlBrushSerializer.cs
- InterleavedZipPartStream.cs
- ExceptionList.cs
- ControlCollection.cs
- HttpPostServerProtocol.cs
- _CookieModule.cs
- XmlArrayAttribute.cs
- XmlSerializableReader.cs
- DesignerExtenders.cs
- ParseHttpDate.cs
- BuildResultCache.cs
- DataMemberAttribute.cs
- QilTypeChecker.cs
- TransformPattern.cs
- UnionCodeGroup.cs
- UIAgentMonitor.cs
- MD5CryptoServiceProvider.cs
- UdpDiscoveryEndpointElement.cs
- AdjustableArrowCap.cs
- PolyBezierSegmentFigureLogic.cs
- WindowsToolbarAsMenu.cs
- IPAddress.cs