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
- WorkflowServiceInstance.cs
- DefaultWorkflowTransactionService.cs
- AutomationAttributeInfo.cs
- ProgressBarBrushConverter.cs
- SignatureHelper.cs
- Debugger.cs
- VBIdentifierDesigner.xaml.cs
- Page.cs
- ToolStripManager.cs
- ClientBuildManagerCallback.cs
- FlowchartStart.xaml.cs
- ParameterToken.cs
- InvalidPipelineStoreException.cs
- ScaleTransform3D.cs
- PathFigureCollectionConverter.cs
- GetPageNumberCompletedEventArgs.cs
- PopupControlService.cs
- RepeaterItem.cs
- DoubleIndependentAnimationStorage.cs
- StringArrayConverter.cs
- PeerNameRecord.cs
- MemberMaps.cs
- MultiBinding.cs
- SHA384Managed.cs
- IFormattable.cs
- SByte.cs
- XmlException.cs
- XmlIlTypeHelper.cs
- TargetParameterCountException.cs
- BindingOperations.cs
- ComponentSerializationService.cs
- Math.cs
- SerialPort.cs
- UriSectionData.cs
- EncoderReplacementFallback.cs
- XPathSingletonIterator.cs
- CounterCreationData.cs
- BinaryConverter.cs
- FormsAuthenticationUserCollection.cs
- basevalidator.cs
- connectionpool.cs
- AssertFilter.cs
- ResourceIDHelper.cs
- EntityConnection.cs
- Math.cs
- SecurityRuntime.cs
- LoginView.cs
- TextBounds.cs
- RadialGradientBrush.cs
- oledbmetadatacolumnnames.cs
- ListBindingConverter.cs
- ColumnResizeAdorner.cs
- DbConnectionPoolIdentity.cs
- ComplexPropertyEntry.cs
- FunctionParameter.cs
- HttpClientProtocol.cs
- IncrementalReadDecoders.cs
- KoreanCalendar.cs
- SpeakInfo.cs
- HttpApplication.cs
- SourceFilter.cs
- CultureInfo.cs
- DataGridBoolColumn.cs
- VarInfo.cs
- TreeViewItemAutomationPeer.cs
- FullTextBreakpoint.cs
- Semaphore.cs
- OledbConnectionStringbuilder.cs
- UserControlDesigner.cs
- TableChangeProcessor.cs
- shaper.cs
- TopClause.cs
- XmlBaseReader.cs
- SamlSecurityTokenAuthenticator.cs
- ModuleConfigurationInfo.cs
- TypeSemantics.cs
- SourceFileInfo.cs
- VirtualPathProvider.cs
- CreateCardRequest.cs
- NetSectionGroup.cs
- ManifestResourceInfo.cs
- RightsController.cs
- BeginEvent.cs
- DataGridViewComboBoxEditingControl.cs
- ScrollBar.cs
- SigningCredentials.cs
- XmlSchemaCollection.cs
- ListBase.cs
- brushes.cs
- ColumnMap.cs
- ManagementObject.cs
- Color.cs
- CFStream.cs
- DocumentPageHost.cs
- OperationCanceledException.cs
- Enum.cs
- WorkflowServiceHostFactory.cs
- NamedPipeAppDomainProtocolHandler.cs
- DesignBindingEditor.cs
- CallbackHandler.cs