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
- ScriptControl.cs
- StringWriter.cs
- SafeNativeMethods.cs
- XmlNode.cs
- SplitterEvent.cs
- unitconverter.cs
- RegistryPermission.cs
- EntityWrapperFactory.cs
- HierarchicalDataBoundControl.cs
- Grid.cs
- XmlSerializer.cs
- StsCommunicationException.cs
- HashAlgorithm.cs
- ExclusiveTcpListener.cs
- TimerTable.cs
- StretchValidation.cs
- Perspective.cs
- PopupRoot.cs
- EllipseGeometry.cs
- HtmlInputReset.cs
- RightsManagementEncryptedStream.cs
- GeneratedView.cs
- AnnouncementService.cs
- MethodRental.cs
- ConfigurationManager.cs
- backend.cs
- EmbeddedMailObjectsCollection.cs
- CannotUnloadAppDomainException.cs
- CompareInfo.cs
- HtmlTextArea.cs
- InputLanguageProfileNotifySink.cs
- HttpProfileBase.cs
- Debug.cs
- XPathSingletonIterator.cs
- NavigationFailedEventArgs.cs
- CodeIterationStatement.cs
- SplitterEvent.cs
- ScriptingJsonSerializationSection.cs
- DispatcherEventArgs.cs
- SQLChars.cs
- WizardPanel.cs
- TextMetrics.cs
- HttpBrowserCapabilitiesBase.cs
- LinqDataSourceDisposeEventArgs.cs
- WrapperEqualityComparer.cs
- FunctionDetailsReader.cs
- ValueUnavailableException.cs
- MimeWriter.cs
- Funcletizer.cs
- FilterException.cs
- SEHException.cs
- QilFactory.cs
- RemotingException.cs
- HashHelper.cs
- UdpContractFilterBehavior.cs
- Context.cs
- IdnMapping.cs
- NotSupportedException.cs
- ResXFileRef.cs
- MenuCommands.cs
- ImmutableCollection.cs
- PropertyPath.cs
- InternalUserCancelledException.cs
- ImageCollectionCodeDomSerializer.cs
- GenericTypeParameterBuilder.cs
- RequestCacheEntry.cs
- shaperfactoryquerycacheentry.cs
- WrappedKeySecurityToken.cs
- FilterFactory.cs
- newinstructionaction.cs
- CalendarButton.cs
- ButtonField.cs
- MethodResolver.cs
- RNGCryptoServiceProvider.cs
- WebMessageEncodingBindingElement.cs
- TextHidden.cs
- Thumb.cs
- RSACryptoServiceProvider.cs
- XmlNodeList.cs
- DataControlFieldCollection.cs
- AuthStoreRoleProvider.cs
- DmlSqlGenerator.cs
- DataServiceBehavior.cs
- NavigationPropertyEmitter.cs
- AQNBuilder.cs
- PersistenceContextEnlistment.cs
- Calendar.cs
- DataContractSerializerOperationFormatter.cs
- AttachedPropertyMethodSelector.cs
- KeyNotFoundException.cs
- ToolConsole.cs
- SchemaTypeEmitter.cs
- ManipulationInertiaStartingEventArgs.cs
- ExpressionsCollectionConverter.cs
- OdbcFactory.cs
- HttpConfigurationSystem.cs
- RegexMatchCollection.cs
- formatter.cs
- ToolStripItemRenderEventArgs.cs
- cookiecollection.cs