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
- ITextView.cs
- TileBrush.cs
- MappingModelBuildProvider.cs
- ValidationHelpers.cs
- TransformerTypeCollection.cs
- Expander.cs
- ImageListUtils.cs
- SemaphoreFullException.cs
- ColumnMapCopier.cs
- ContentType.cs
- InstancePersistenceEvent.cs
- XmlSerializableServices.cs
- Stacktrace.cs
- StringAnimationBase.cs
- EnumMemberAttribute.cs
- RelationshipEndMember.cs
- SamlAuthorityBinding.cs
- RepeatButton.cs
- ResourceReferenceExpressionConverter.cs
- CommentEmitter.cs
- EndpointDiscoveryMetadataCD1.cs
- LabelDesigner.cs
- altserialization.cs
- NamespaceEmitter.cs
- ActivityMarkupSerializationProvider.cs
- UseAttributeSetsAction.cs
- RuntimeArgumentHandle.cs
- WebPartDisplayModeCollection.cs
- CurrencyManager.cs
- Line.cs
- FormsAuthenticationConfiguration.cs
- RegexCharClass.cs
- UnhandledExceptionEventArgs.cs
- TextBlockAutomationPeer.cs
- AttachInfo.cs
- ServicePointManager.cs
- VariableValue.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ReadOnlyDictionary.cs
- XPathDocument.cs
- SubMenuStyle.cs
- ObjectSerializerFactory.cs
- TextSchema.cs
- SystemResources.cs
- Timer.cs
- View.cs
- CollectionBuilder.cs
- ListViewGroupItemCollection.cs
- SafeEventLogWriteHandle.cs
- DataConnectionHelper.cs
- XsltOutput.cs
- SafeCoTaskMem.cs
- PropertyPathWorker.cs
- XMLUtil.cs
- FunctionCommandText.cs
- SmtpReplyReader.cs
- CursorConverter.cs
- SBCSCodePageEncoding.cs
- ButtonField.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Splitter.cs
- SmtpFailedRecipientsException.cs
- SafeCoTaskMem.cs
- IdentitySection.cs
- RegexRunner.cs
- HostingPreferredMapPath.cs
- PasswordDeriveBytes.cs
- SchemaMerger.cs
- PageCodeDomTreeGenerator.cs
- ViewValidator.cs
- Pen.cs
- SHA512.cs
- IPipelineRuntime.cs
- WsdlHelpGeneratorElement.cs
- Translator.cs
- SecurityKeyType.cs
- ServicePoint.cs
- StylusLogic.cs
- EncryptedData.cs
- Range.cs
- TraceHandlerErrorFormatter.cs
- XmlDataDocument.cs
- InputBuffer.cs
- ForwardPositionQuery.cs
- CompressedStack.cs
- List.cs
- Utils.cs
- PermissionSetTriple.cs
- ProviderSettings.cs
- TextInfo.cs
- FormViewUpdateEventArgs.cs
- ConnectionManagementElement.cs
- ServiceBusyException.cs
- HighlightComponent.cs
- SrgsRule.cs
- XmlDocumentSchema.cs
- EnumDataContract.cs
- ImageClickEventArgs.cs
- IPAddress.cs
- SqlFunctionAttribute.cs