Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- PropertyEntry.cs
- ToolStripDropTargetManager.cs
- WebPartDisplayModeCollection.cs
- BitmapEffectInput.cs
- ConfigurationSection.cs
- ReferentialConstraintRoleElement.cs
- SafeHandles.cs
- InternalException.cs
- TableLayoutStyleCollection.cs
- OdbcCommandBuilder.cs
- DateTimeOffsetStorage.cs
- AllMembershipCondition.cs
- ADMembershipUser.cs
- storepermission.cs
- ExceptionUtil.cs
- PrintPreviewGraphics.cs
- ConnectionPointCookie.cs
- WebAdminConfigurationHelper.cs
- SafeProcessHandle.cs
- PerformanceCountersElement.cs
- ActiveXSite.cs
- CornerRadiusConverter.cs
- TypographyProperties.cs
- DragStartedEventArgs.cs
- DropShadowBitmapEffect.cs
- FrameworkRichTextComposition.cs
- BuiltInExpr.cs
- FlowLayoutPanel.cs
- externdll.cs
- ViewService.cs
- RemoteArgument.cs
- Assert.cs
- AuthenticatedStream.cs
- BuildResult.cs
- DataGridViewRowCollection.cs
- FigureParagraph.cs
- InitializationEventAttribute.cs
- NameValueConfigurationCollection.cs
- UnsafeNativeMethodsPenimc.cs
- StyleCollection.cs
- parserscommon.cs
- Script.cs
- DependencyPropertyHelper.cs
- SHA1.cs
- ListComponentEditor.cs
- JpegBitmapEncoder.cs
- ping.cs
- MasterPageParser.cs
- TypeToken.cs
- FileVersionInfo.cs
- SqlInfoMessageEvent.cs
- FtpWebRequest.cs
- RequestCacheEntry.cs
- RecognizedWordUnit.cs
- XmlILTrace.cs
- XmlElementCollection.cs
- EntityDataSourceDataSelection.cs
- DataFormat.cs
- Error.cs
- CultureInfoConverter.cs
- UriTemplateTrieNode.cs
- DataSourceHelper.cs
- ColorMatrix.cs
- OracleCommandSet.cs
- Logging.cs
- HttpProfileGroupBase.cs
- XPathDocumentNavigator.cs
- DragStartedEventArgs.cs
- CodeCommentStatement.cs
- safex509handles.cs
- XmlILStorageConverter.cs
- EpmSourceTree.cs
- SafeNativeMethodsMilCoreApi.cs
- CompensateDesigner.cs
- DefaultWorkflowTransactionService.cs
- CompilationUnit.cs
- DateRangeEvent.cs
- XmlAutoDetectWriter.cs
- SettingsSavedEventArgs.cs
- BitmapCacheBrush.cs
- DefaultMergeHelper.cs
- SoapHeaders.cs
- RenderDataDrawingContext.cs
- ForeignKeyConstraint.cs
- Function.cs
- MatrixIndependentAnimationStorage.cs
- OSFeature.cs
- DataGridItem.cs
- CompressionTransform.cs
- OrCondition.cs
- WSUtilitySpecificationVersion.cs
- SqlConnection.cs
- DataBoundLiteralControl.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DummyDataSource.cs
- DurableErrorHandler.cs
- WaveHeader.cs
- FillBehavior.cs
- PerformanceCounterManager.cs
- AttributeExtensions.cs