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
- PageWrapper.cs
- ExeContext.cs
- WorkflowItemsPresenter.cs
- SessionPageStateSection.cs
- RTTypeWrapper.cs
- ProbeDuplex11AsyncResult.cs
- StrokeCollection2.cs
- XmlSchemaObject.cs
- MonitoringDescriptionAttribute.cs
- BitmapEditor.cs
- _ShellExpression.cs
- LineSegment.cs
- CLRBindingWorker.cs
- TableItemProviderWrapper.cs
- CodeAttachEventStatement.cs
- XmlSchemaSet.cs
- ZoneIdentityPermission.cs
- ValueUtilsSmi.cs
- XmlStreamNodeWriter.cs
- MetadataItemEmitter.cs
- PolicyStatement.cs
- MenuItemBindingCollection.cs
- XmlNodeChangedEventArgs.cs
- SqlInternalConnectionSmi.cs
- MD5.cs
- NameValueConfigurationElement.cs
- datacache.cs
- WebSysDisplayNameAttribute.cs
- ResourceWriter.cs
- DataPagerField.cs
- ToolBar.cs
- XmlSchemaElement.cs
- TreeBuilder.cs
- ListManagerBindingsCollection.cs
- GeneralTransform3D.cs
- FolderBrowserDialog.cs
- ClientFormsIdentity.cs
- SqlFlattener.cs
- CodeTypeDeclarationCollection.cs
- DesignerTransaction.cs
- OperationFormatUse.cs
- ComponentRenameEvent.cs
- RequestChannelBinder.cs
- DocumentCollection.cs
- View.cs
- DefaultExpression.cs
- WindowsSpinner.cs
- ZipIOLocalFileHeader.cs
- Speller.cs
- SimpleTypeResolver.cs
- _SSPIWrapper.cs
- NavigationEventArgs.cs
- IPipelineRuntime.cs
- XmlSchemaDocumentation.cs
- GridViewDeletedEventArgs.cs
- wgx_sdk_version.cs
- TransformationRules.cs
- ComponentSerializationService.cs
- TCPClient.cs
- EndPoint.cs
- ParenthesizePropertyNameAttribute.cs
- ListView.cs
- DesignerDataSourceView.cs
- dataobject.cs
- LinkTarget.cs
- WindowsAuthenticationEventArgs.cs
- InputScopeManager.cs
- IsolatedStorageFileStream.cs
- PathSegment.cs
- TimeManager.cs
- embossbitmapeffect.cs
- EFTableProvider.cs
- TreeBuilderXamlTranslator.cs
- SkinBuilder.cs
- GridViewColumnCollectionChangedEventArgs.cs
- GlyphRun.cs
- RuleSettings.cs
- TableAdapterManagerHelper.cs
- WebControlsSection.cs
- GridToolTip.cs
- InsufficientMemoryException.cs
- ExpressionBinding.cs
- EditorPartDesigner.cs
- ScaleTransform3D.cs
- SafeLibraryHandle.cs
- DataGridPageChangedEventArgs.cs
- RegisteredDisposeScript.cs
- CodeAttributeDeclarationCollection.cs
- WindowsTreeView.cs
- XmlSchemaImporter.cs
- TraceProvider.cs
- TextSearch.cs
- XsltSettings.cs
- StateMachine.cs
- DataGridViewCellPaintingEventArgs.cs
- FormViewDeletedEventArgs.cs
- ISAPIApplicationHost.cs
- Popup.cs
- FileAuthorizationModule.cs
- VerticalAlignConverter.cs