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
- EntityConnectionStringBuilderItem.cs
- FormViewModeEventArgs.cs
- MetadataArtifactLoaderComposite.cs
- WebPartZoneBase.cs
- TextRangeEditTables.cs
- KeyboardDevice.cs
- AVElementHelper.cs
- ReadContentAsBinaryHelper.cs
- XhtmlConformanceSection.cs
- EntityDataSourceWrapperCollection.cs
- VersionedStream.cs
- HMACSHA1.cs
- QuadraticEase.cs
- sqlinternaltransaction.cs
- RelOps.cs
- TextFragmentEngine.cs
- validationstate.cs
- MethodBody.cs
- FunctionImportElement.cs
- EdmComplexPropertyAttribute.cs
- XmlSubtreeReader.cs
- TemplateKey.cs
- CollaborationHelperFunctions.cs
- Int16Converter.cs
- NumberFormatInfo.cs
- XmlConvert.cs
- TextOnlyOutput.cs
- FeedUtils.cs
- MailAddressCollection.cs
- EllipticalNodeOperations.cs
- RequestDescription.cs
- PEFileEvidenceFactory.cs
- ZipPackage.cs
- BooleanAnimationUsingKeyFrames.cs
- BinaryCommonClasses.cs
- HandlerBase.cs
- ResourceReader.cs
- DispatcherHookEventArgs.cs
- ReturnValue.cs
- InterleavedZipPartStream.cs
- BamlRecordWriter.cs
- CheckBoxRenderer.cs
- DuplexClientBase.cs
- SignatureDescription.cs
- Freezable.cs
- TextReader.cs
- BrowserCapabilitiesFactory.cs
- ReadOnlyTernaryTree.cs
- EntitySqlQueryBuilder.cs
- WebServiceResponse.cs
- JpegBitmapDecoder.cs
- OpenTypeLayoutCache.cs
- ToolStripDropDown.cs
- WebPartsPersonalizationAuthorization.cs
- XmlSchemaSimpleTypeRestriction.cs
- BitmapEffectDrawing.cs
- ContainsRowNumberChecker.cs
- PostBackTrigger.cs
- EntityDataSourceWizardForm.cs
- ReflectionPermission.cs
- StoreContentChangedEventArgs.cs
- DataGridRowAutomationPeer.cs
- BadImageFormatException.cs
- SecureEnvironment.cs
- diagnosticsswitches.cs
- Normalizer.cs
- DefaultTraceListener.cs
- DetailsViewPagerRow.cs
- ClientSideQueueItem.cs
- MulticastNotSupportedException.cs
- HttpModuleCollection.cs
- EditorPartDesigner.cs
- ExceptionNotification.cs
- FtpCachePolicyElement.cs
- OleDbError.cs
- XPathAxisIterator.cs
- Color.cs
- ArraySubsetEnumerator.cs
- TraceProvider.cs
- BufferedReceiveElement.cs
- ViewStateException.cs
- ClientSettings.cs
- GZipDecoder.cs
- EnumUnknown.cs
- InvokePattern.cs
- Object.cs
- FormViewDeletedEventArgs.cs
- ContentElement.cs
- XpsStructure.cs
- UTF32Encoding.cs
- NameTable.cs
- ChannelSinkStacks.cs
- PreservationFileWriter.cs
- ReadOnlyCollection.cs
- SHA1CryptoServiceProvider.cs
- IISMapPath.cs
- XmlQueryStaticData.cs
- SuppressedPackageProperties.cs
- SqlDataSourceFilteringEventArgs.cs
- FormsAuthentication.cs