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
- OleDbErrorCollection.cs
- regiisutil.cs
- CodeExpressionStatement.cs
- ZipIOLocalFileDataDescriptor.cs
- DataGridViewButtonCell.cs
- DocumentXmlWriter.cs
- ProcessThread.cs
- BuildManager.cs
- XmlSchemaSet.cs
- EmbeddedMailObjectsCollection.cs
- SQLInt64.cs
- XamlTemplateSerializer.cs
- GatewayIPAddressInformationCollection.cs
- DbMetaDataFactory.cs
- PersianCalendar.cs
- SqlDataSourceStatusEventArgs.cs
- Overlapped.cs
- DispatcherTimer.cs
- Thickness.cs
- TypeConvertions.cs
- StreamMarshaler.cs
- XmlSchemaInfo.cs
- TargetInvocationException.cs
- AtomServiceDocumentSerializer.cs
- CompatibleComparer.cs
- ImageMapEventArgs.cs
- MetabaseServerConfig.cs
- SortDescriptionCollection.cs
- NameObjectCollectionBase.cs
- DataGridViewSelectedColumnCollection.cs
- SrgsSemanticInterpretationTag.cs
- OpacityConverter.cs
- SecurityDescriptor.cs
- DispatcherTimer.cs
- _AutoWebProxyScriptEngine.cs
- Frame.cs
- Int64Animation.cs
- CfgParser.cs
- TableAutomationPeer.cs
- DataColumnPropertyDescriptor.cs
- ElapsedEventArgs.cs
- FormsAuthenticationModule.cs
- ListViewItemCollectionEditor.cs
- KeyGestureValueSerializer.cs
- XPathNodePointer.cs
- TraceProvider.cs
- XmlSchemaComplexType.cs
- PreviewKeyDownEventArgs.cs
- ApplicationActivator.cs
- Message.cs
- SerializerProvider.cs
- AbstractSvcMapFileLoader.cs
- EnumValidator.cs
- ClientUtils.cs
- WebControlAdapter.cs
- BamlRecords.cs
- KoreanCalendar.cs
- PrivilegeNotHeldException.cs
- Subset.cs
- TraceSection.cs
- MessageEnumerator.cs
- ISAPIRuntime.cs
- GeneralTransform2DTo3D.cs
- TaskFormBase.cs
- NaturalLanguageHyphenator.cs
- ParsedAttributeCollection.cs
- WebBrowserHelper.cs
- SafeProcessHandle.cs
- TextRangeEdit.cs
- ContentIterators.cs
- ObjectNotFoundException.cs
- TdsParserSafeHandles.cs
- XmlNodeReader.cs
- BamlStream.cs
- COAUTHINFO.cs
- WorkBatch.cs
- AddInIpcChannel.cs
- BooleanSwitch.cs
- XamlTreeBuilder.cs
- ScriptingWebServicesSectionGroup.cs
- SystemInfo.cs
- ComEventsSink.cs
- SqlDependencyUtils.cs
- CompositeFontInfo.cs
- ProgressBarRenderer.cs
- filewebrequest.cs
- ImageConverter.cs
- StylusPlugInCollection.cs
- InstanceDataCollection.cs
- UidManager.cs
- ClockGroup.cs
- StateChangeEvent.cs
- XamlInt32CollectionSerializer.cs
- SystemColors.cs
- IndicFontClient.cs
- NominalTypeEliminator.cs
- CharacterHit.cs
- RecordConverter.cs
- StreamWithDictionary.cs
- XmlSchemaChoice.cs