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
- KnownBoxes.cs
- InkPresenter.cs
- VoiceSynthesis.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ObjectDataSourceMethodEventArgs.cs
- StaticResourceExtension.cs
- WebProxyScriptElement.cs
- WebServiceErrorEvent.cs
- DataObject.cs
- FieldAccessException.cs
- SQLByte.cs
- BoundPropertyEntry.cs
- ClientOperationFormatterProvider.cs
- HintTextConverter.cs
- RowBinding.cs
- VirtualizingStackPanel.cs
- Frame.cs
- ToolBarButton.cs
- PenCursorManager.cs
- Socket.cs
- DocumentAutomationPeer.cs
- DoubleConverter.cs
- AccessKeyManager.cs
- ImpersonationContext.cs
- StrongName.cs
- WithParamAction.cs
- MailWriter.cs
- ValueUnavailableException.cs
- AffineTransform3D.cs
- StringKeyFrameCollection.cs
- SerializableAttribute.cs
- LockRecoveryTask.cs
- UdpDiscoveryMessageFilter.cs
- XmlTextWriter.cs
- _NestedSingleAsyncResult.cs
- RegexCompiler.cs
- CapabilitiesSection.cs
- EntitySqlQueryState.cs
- ReceiveActivity.cs
- ListenerElementsCollection.cs
- OdbcParameterCollection.cs
- Point3DCollectionConverter.cs
- Font.cs
- PasswordTextNavigator.cs
- ResourceDisplayNameAttribute.cs
- ServerValidateEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- SplitterPanel.cs
- DurationConverter.cs
- PartialList.cs
- ActivityStatusChangeEventArgs.cs
- FileSystemInfo.cs
- SQLBinaryStorage.cs
- D3DImage.cs
- EventLogTraceListener.cs
- VBIdentifierTrimConverter.cs
- SqlUDTStorage.cs
- ResourceType.cs
- EpmSyndicationContentSerializer.cs
- SymLanguageVendor.cs
- BitmapEffectDrawingContextState.cs
- DrawingAttributeSerializer.cs
- XmlMapping.cs
- DataTemplate.cs
- Rect3DValueSerializer.cs
- TypeForwardedFromAttribute.cs
- RefreshPropertiesAttribute.cs
- sqlcontext.cs
- PrintDocument.cs
- IriParsingElement.cs
- Label.cs
- MatrixCamera.cs
- ActivityValidator.cs
- _ChunkParse.cs
- DiscriminatorMap.cs
- CodePageUtils.cs
- CodeNamespaceCollection.cs
- CustomAttributeSerializer.cs
- BufferedWebEventProvider.cs
- RegexCompiler.cs
- XmlUrlResolver.cs
- EventProviderBase.cs
- RuntimeIdentifierPropertyAttribute.cs
- ConnectionProviderAttribute.cs
- TransactionsSectionGroup.cs
- RpcAsyncResult.cs
- ToolStripSystemRenderer.cs
- WindowPatternIdentifiers.cs
- AuthenticationService.cs
- MonthChangedEventArgs.cs
- WsatConfiguration.cs
- QueryContinueDragEvent.cs
- ScrollBarRenderer.cs
- MaterialGroup.cs
- ContainerSelectorGlyph.cs
- IItemContainerGenerator.cs
- SystemDropShadowChrome.cs
- FragmentQueryKB.cs
- InstallerTypeAttribute.cs
- Activity.cs