Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExceptionHelpers.cs / 2 / 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 { // effects: if condition is false, throws an InvalidOperation // exception with resourceMmessage that is looked up in the resources internal static void CheckAndThrowRes(bool condition, FuncformatMessage) { if (condition == false) { StringBuilder builder = new StringBuilder(); builder.Append(System.Data.Entity.Strings.ViewGen_Internal_Error); builder.AppendLine(formatMessage()); throw EntityUtil.InvalidOperation(builder.ToString()); } } // effects: if condition is false, throws an InvalidOperation // exception with a message where the resourceFormatString is looked up in // the resources internal static void CheckAndThrowResArgs(bool condition, Func
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusButtonCollection.cs
- BackEase.cs
- ByteAnimation.cs
- CodeNamespaceImportCollection.cs
- AssemblyFilter.cs
- Asn1IntegerConverter.cs
- Int64Storage.cs
- ExpressionWriter.cs
- PlanCompiler.cs
- Single.cs
- ContentPlaceHolder.cs
- PropertyTabChangedEvent.cs
- DesignerSerializationOptionsAttribute.cs
- DesignOnlyAttribute.cs
- CompilationSection.cs
- XmlNodeComparer.cs
- Adorner.cs
- PropertyPathConverter.cs
- ToolboxCategoryItems.cs
- BamlTreeUpdater.cs
- SqlServices.cs
- OutputCacheSection.cs
- LogAppendAsyncResult.cs
- ScriptResourceAttribute.cs
- WaitForChangedResult.cs
- TemplateAction.cs
- ControlUtil.cs
- WindowCollection.cs
- Win32MouseDevice.cs
- RelationshipWrapper.cs
- EffectiveValueEntry.cs
- Italic.cs
- PathData.cs
- Brushes.cs
- Vars.cs
- GeneralTransform2DTo3D.cs
- AnnotationObservableCollection.cs
- PolygonHotSpot.cs
- RectangleHotSpot.cs
- ChangePassword.cs
- PolyBezierSegment.cs
- BypassElement.cs
- Image.cs
- SessionEndingEventArgs.cs
- EventWaitHandle.cs
- WorkflowMessageEventArgs.cs
- Walker.cs
- SymDocumentType.cs
- EncryptedType.cs
- GeneralTransform3DGroup.cs
- Monitor.cs
- CodeIdentifier.cs
- SQLDouble.cs
- QueryPageSettingsEventArgs.cs
- ExtendedProperty.cs
- WindowsContainer.cs
- ZipPackage.cs
- BufferedOutputAsyncStream.cs
- DataRelationPropertyDescriptor.cs
- JsonReaderWriterFactory.cs
- ZipFileInfoCollection.cs
- ResourceProperty.cs
- WebPartEditorApplyVerb.cs
- WebScriptMetadataMessage.cs
- InvokeWebService.cs
- XmlAtomicValue.cs
- TemplateAction.cs
- ContextStack.cs
- VScrollProperties.cs
- TimerElapsedEvenArgs.cs
- SessionStateItemCollection.cs
- DocumentStatusResources.cs
- RectIndependentAnimationStorage.cs
- ScalarOps.cs
- PersonalizablePropertyEntry.cs
- CompilerWrapper.cs
- Margins.cs
- SearchForVirtualItemEventArgs.cs
- SubMenuStyleCollection.cs
- ColorPalette.cs
- UpdateCompiler.cs
- ProcessModelInfo.cs
- DocumentXmlWriter.cs
- Mouse.cs
- Socket.cs
- EmptyWithCancelationCheckWorkItem.cs
- RegularExpressionValidator.cs
- TreeViewCancelEvent.cs
- ObjectSelectorEditor.cs
- HttpWebResponse.cs
- TaskbarItemInfo.cs
- InputLanguageProfileNotifySink.cs
- FixedDocumentSequencePaginator.cs
- X509Utils.cs
- metadatamappinghashervisitor.cs
- PerSessionInstanceContextProvider.cs
- AdornerPresentationContext.cs
- FontNamesConverter.cs
- SimpleTextLine.cs
- DynamicUpdateCommand.cs