Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / InternalMappingException.cs / 1 / 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
- StyleHelper.cs
- RightsManagementEncryptedStream.cs
- XmlSchemaSet.cs
- BackgroundWorker.cs
- TemplateKeyConverter.cs
- FunctionCommandText.cs
- Int64Animation.cs
- HtmlToClrEventProxy.cs
- CancellationHandlerDesigner.cs
- WindowsScrollBar.cs
- WebPartMenu.cs
- WebPartEventArgs.cs
- RichTextBox.cs
- TempFiles.cs
- DoWhile.cs
- SystemDropShadowChrome.cs
- CodeDirectoryCompiler.cs
- ResXBuildProvider.cs
- NativeMethodsOther.cs
- DataSourceCache.cs
- DeobfuscatingStream.cs
- AxisAngleRotation3D.cs
- SimpleTypeResolver.cs
- ProcessHostFactoryHelper.cs
- ColumnHeaderConverter.cs
- BooleanKeyFrameCollection.cs
- SmiEventSink_Default.cs
- WebPartManager.cs
- ScriptServiceAttribute.cs
- XomlCompilerParameters.cs
- PreservationFileReader.cs
- ScrollBar.cs
- DataColumnPropertyDescriptor.cs
- DataGridViewDataErrorEventArgs.cs
- LogicalTreeHelper.cs
- IndentTextWriter.cs
- MetaData.cs
- Blend.cs
- XPathExpr.cs
- RuntimeConfigLKG.cs
- XmlChoiceIdentifierAttribute.cs
- DataServiceKeyAttribute.cs
- MiniModule.cs
- HtmlInputControl.cs
- METAHEADER.cs
- XmlSchemaExternal.cs
- OleDbException.cs
- DbQueryCommandTree.cs
- LocalizabilityAttribute.cs
- TextEndOfParagraph.cs
- RecognizerInfo.cs
- TimeSpanMinutesConverter.cs
- TextEditorSpelling.cs
- ModelPropertyImpl.cs
- ReadingWritingEntityEventArgs.cs
- DynamicDataManager.cs
- UseManagedPresentationElement.cs
- IndicShape.cs
- WmlValidatorAdapter.cs
- DispatchOperationRuntime.cs
- XmlUTF8TextWriter.cs
- XPathDocumentIterator.cs
- TextBoxView.cs
- HtmlTable.cs
- NativeMethods.cs
- CodeDOMUtility.cs
- ToolboxItemFilterAttribute.cs
- TcpClientChannel.cs
- BmpBitmapEncoder.cs
- XmlNavigatorFilter.cs
- PrimitiveXmlSerializers.cs
- SpeechSynthesizer.cs
- CompositionDesigner.cs
- GeometryHitTestParameters.cs
- XPathDocumentBuilder.cs
- Bitmap.cs
- IPHostEntry.cs
- ProfileManager.cs
- ScriptHandlerFactory.cs
- FormsAuthenticationEventArgs.cs
- SizeConverter.cs
- BooleanExpr.cs
- CollectionTypeElement.cs
- ContextQuery.cs
- XPathNodeList.cs
- ListCollectionView.cs
- COM2ExtendedTypeConverter.cs
- WebControlAdapter.cs
- securitymgrsite.cs
- ConfigurationStrings.cs
- ValidationHelpers.cs
- AttachedAnnotationChangedEventArgs.cs
- X509CertificateCollection.cs
- SyndicationItem.cs
- DialogResultConverter.cs
- Region.cs
- RightsManagementEncryptedStream.cs
- DataGridViewSortCompareEventArgs.cs
- DynamicILGenerator.cs
- CompositeControl.cs