Code:
/ 4.0 / 4.0 / 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.
//----------------------------------------------------------------------
//
// 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
- Int32RectValueSerializer.cs
- MissingMethodException.cs
- AuthenticatedStream.cs
- ConnectionPointCookie.cs
- RegexCaptureCollection.cs
- IndexOutOfRangeException.cs
- SqlDataSource.cs
- SqlBuffer.cs
- IConvertible.cs
- TreeNodeCollectionEditor.cs
- HandoffBehavior.cs
- DataContractSerializerSection.cs
- InvalidEnumArgumentException.cs
- SmtpReplyReader.cs
- AttributeCollection.cs
- LexicalChunk.cs
- SqlDataSourceView.cs
- odbcmetadatafactory.cs
- EmbeddedMailObject.cs
- IntegerFacetDescriptionElement.cs
- SapiAttributeParser.cs
- StringUtil.cs
- sitestring.cs
- ListSourceHelper.cs
- DataGridHeaderBorder.cs
- DesignerDeviceConfig.cs
- SoapObjectWriter.cs
- ModuleBuilder.cs
- Timer.cs
- EventsTab.cs
- ScopelessEnumAttribute.cs
- FixUpCollection.cs
- UnsafeNativeMethods.cs
- SupportsPreviewControlAttribute.cs
- CustomError.cs
- DataGridViewBand.cs
- ToolStripItemEventArgs.cs
- HyperLinkDesigner.cs
- TableItemProviderWrapper.cs
- SqlCacheDependencyDatabase.cs
- TimeZone.cs
- BamlBinaryReader.cs
- DesignerTransactionCloseEvent.cs
- HandlerFactoryCache.cs
- CustomAttribute.cs
- SessionChannels.cs
- CommandBinding.cs
- _ListenerResponseStream.cs
- HybridDictionary.cs
- Span.cs
- BufferAllocator.cs
- BinaryObjectWriter.cs
- InvalidEnumArgumentException.cs
- OperandQuery.cs
- TextAnchor.cs
- WebPartConnectionsCloseVerb.cs
- FormViewDeleteEventArgs.cs
- InternalTransaction.cs
- GlyphShapingProperties.cs
- BeginEvent.cs
- HttpModuleAction.cs
- ClientApiGenerator.cs
- HtmlInputHidden.cs
- ZeroOpNode.cs
- TableLayoutPanel.cs
- ResourceReader.cs
- XPathScanner.cs
- HttpRequest.cs
- XmlWhitespace.cs
- FamilyMap.cs
- DataGridViewRowsRemovedEventArgs.cs
- ValidatorCompatibilityHelper.cs
- CodePageEncoding.cs
- View.cs
- PointLight.cs
- DataGridViewCellFormattingEventArgs.cs
- Lease.cs
- WorkflowServiceBuildProvider.cs
- DateTimeParse.cs
- PreservationFileReader.cs
- VerticalAlignConverter.cs
- HttpResponseHeader.cs
- Panel.cs
- ObjectCloneHelper.cs
- RoutedCommand.cs
- CssTextWriter.cs
- Number.cs
- DataMemberFieldEditor.cs
- ImageMapEventArgs.cs
- ValidationErrorCollection.cs
- RequestCachePolicyConverter.cs
- Document.cs
- CheckoutException.cs
- XmlSchemaSimpleTypeRestriction.cs
- HtmlShim.cs
- GridItemCollection.cs
- BaseParaClient.cs
- SystemWebCachingSectionGroup.cs
- ConnectionDemuxer.cs
- AdornerPresentationContext.cs