Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExceptionHelpers.cs / 1305376 / ExceptionHelpers.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System.Text;
using System.Data.Mapping.ViewGeneration.Structures;
using System.Diagnostics;
using System.Data.Common.Utils;
namespace System.Data.Mapping.ViewGeneration.Utils
{
// Miscellaneous helper routines for generating mapping exceptions
internal static class ExceptionHelpers
{
internal static void ThrowMappingException(ErrorLog.Record errorRecord, ConfigViewGenerator config)
{
InternalMappingException exception = new InternalMappingException(errorRecord.ToUserString(), errorRecord);
if (config.IsNormalTracing)
{
exception.ErrorLog.PrintTrace();
}
throw exception;
}
internal static void ThrowMappingException(ErrorLog errorLog, ConfigViewGenerator config)
{
InternalMappingException exception = new InternalMappingException(errorLog.ToUserString(), errorLog);
if (config.IsNormalTracing)
{
exception.ErrorLog.PrintTrace();
}
throw exception;
}
}
}
// 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
- OleDbConnectionFactory.cs
- TextContainer.cs
- Calendar.cs
- ExitEventArgs.cs
- CrossAppDomainChannel.cs
- ArgIterator.cs
- CodeSnippetStatement.cs
- SectionXmlInfo.cs
- GreenMethods.cs
- WebBrowserEvent.cs
- ScriptingScriptResourceHandlerSection.cs
- PolyQuadraticBezierSegment.cs
- IdentitySection.cs
- DetailsViewUpdateEventArgs.cs
- X509Certificate.cs
- ExpressionNormalizer.cs
- WebEvents.cs
- WindowsClientElement.cs
- DataGridViewRowPrePaintEventArgs.cs
- CompressEmulationStream.cs
- XPathDescendantIterator.cs
- WebServiceHandlerFactory.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ExpressionPrefixAttribute.cs
- Vector3D.cs
- Update.cs
- CompilationLock.cs
- RowTypePropertyElement.cs
- SmtpReplyReaderFactory.cs
- DecoderNLS.cs
- DataConnectionHelper.cs
- TreeNodeBindingCollection.cs
- columnmapfactory.cs
- XmlSerializerSection.cs
- EventlogProvider.cs
- Line.cs
- TextModifier.cs
- SspiSecurityToken.cs
- ButtonBaseAdapter.cs
- EntityTemplateUserControl.cs
- TextTreeUndoUnit.cs
- _SecureChannel.cs
- ReversePositionQuery.cs
- TreeViewItem.cs
- VarRemapper.cs
- KeyboardDevice.cs
- BindValidator.cs
- SystemWebExtensionsSectionGroup.cs
- FlowDocumentScrollViewer.cs
- StickyNoteHelper.cs
- AsyncCallback.cs
- SecurityAppliedMessage.cs
- WhitespaceSignificantCollectionAttribute.cs
- WorkflowViewElement.cs
- ElementHost.cs
- ResourceAssociationType.cs
- InternalCache.cs
- StyleSelector.cs
- Resources.Designer.cs
- XmlSchemaAnnotation.cs
- PrivilegeNotHeldException.cs
- XmlAnyElementAttributes.cs
- DataSourceCacheDurationConverter.cs
- ServiceContractViewControl.cs
- AllMembershipCondition.cs
- UserControlParser.cs
- FormsAuthentication.cs
- DecimalAnimationUsingKeyFrames.cs
- GetImportedCardRequest.cs
- DirectoryNotFoundException.cs
- PageAsyncTask.cs
- PnrpPermission.cs
- DigitShape.cs
- MasterPageCodeDomTreeGenerator.cs
- AsmxEndpointPickerExtension.cs
- OutputCacheSettings.cs
- SiteOfOriginPart.cs
- DataRelationCollection.cs
- EntityContainer.cs
- XPathMultyIterator.cs
- TimeIntervalCollection.cs
- ToolStripProgressBar.cs
- ToolStripLabel.cs
- BindValidator.cs
- PixelFormats.cs
- bidPrivateBase.cs
- TypefaceMap.cs
- SmtpNetworkElement.cs
- MessageQueuePermissionEntry.cs
- WebServiceReceiveDesigner.cs
- SelectingProviderEventArgs.cs
- DataConnectionHelper.cs
- CultureTableRecord.cs
- CodeIdentifiers.cs
- Expression.DebuggerProxy.cs
- StringExpressionSet.cs
- PasswordTextContainer.cs
- GridItemPatternIdentifiers.cs
- XmlMemberMapping.cs
- AnnotationService.cs