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
- IImplicitResourceProvider.cs
- SymmetricCryptoHandle.cs
- OdbcCommand.cs
- TemplateControl.cs
- IndexerNameAttribute.cs
- DataGridItemEventArgs.cs
- ObsoleteAttribute.cs
- CryptoKeySecurity.cs
- ViewKeyConstraint.cs
- MetafileHeaderWmf.cs
- DelegateBodyWriter.cs
- JoinSymbol.cs
- HttpHeaderCollection.cs
- PropertyTabChangedEvent.cs
- _FtpDataStream.cs
- AnnouncementEndpoint.cs
- BitmapEffectGeneralTransform.cs
- ConfigPathUtility.cs
- SubMenuStyle.cs
- DetailsViewRow.cs
- ListInitExpression.cs
- XmlNavigatorFilter.cs
- Configuration.cs
- x509store.cs
- RequestCachePolicyConverter.cs
- versioninfo.cs
- CodeNamespace.cs
- PagesSection.cs
- Application.cs
- ConfigurationValidatorAttribute.cs
- SerializationEventsCache.cs
- InstalledFontCollection.cs
- SqlLiftWhereClauses.cs
- ErrorHandlingReceiver.cs
- SchemaAttDef.cs
- FontEmbeddingManager.cs
- KeysConverter.cs
- CatalogZoneBase.cs
- TypeListConverter.cs
- AttributedMetaModel.cs
- ShutDownListener.cs
- OptimizedTemplateContentHelper.cs
- AttachmentCollection.cs
- KeyFrames.cs
- MsmqIntegrationBinding.cs
- SecurityResources.cs
- SqlFacetAttribute.cs
- SignedPkcs7.cs
- Canvas.cs
- LinqDataSourceEditData.cs
- DetailsViewPageEventArgs.cs
- ArcSegment.cs
- SchemaCollectionCompiler.cs
- PropertyConverter.cs
- ParallelRangeManager.cs
- SqlInternalConnectionSmi.cs
- QueryExpr.cs
- DropShadowEffect.cs
- _AcceptOverlappedAsyncResult.cs
- FigureParaClient.cs
- BulletChrome.cs
- Preprocessor.cs
- errorpatternmatcher.cs
- FormViewUpdatedEventArgs.cs
- SoapElementAttribute.cs
- SignedInfo.cs
- IndependentAnimationStorage.cs
- LayoutEvent.cs
- ConfigurationSchemaErrors.cs
- SoapInteropTypes.cs
- BitmapEffectrendercontext.cs
- TextLine.cs
- DataKey.cs
- SystemFonts.cs
- ForceCopyBuildProvider.cs
- UnauthorizedAccessException.cs
- Timer.cs
- ArithmeticException.cs
- CompilerResults.cs
- ByteStreamMessageEncoder.cs
- MobileUITypeEditor.cs
- SubMenuStyle.cs
- RecordManager.cs
- Int16Storage.cs
- tabpagecollectioneditor.cs
- MULTI_QI.cs
- Models.cs
- SystemIPInterfaceStatistics.cs
- oledbmetadatacolumnnames.cs
- TextRangeSerialization.cs
- DataTableTypeConverter.cs
- DependencyObjectType.cs
- ClearTypeHintValidation.cs
- FontFamily.cs
- UnaryExpression.cs
- WhereaboutsReader.cs
- CodeArgumentReferenceExpression.cs
- DBSchemaTable.cs
- WebPartConnectVerb.cs
- sqlnorm.cs