Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- QueryAsyncResult.cs
- SchemaTableColumn.cs
- ObjectToIdCache.cs
- MobileTemplatedControlDesigner.cs
- prompt.cs
- TreeView.cs
- ValidationErrorInfo.cs
- DataGridViewColumnCollection.cs
- SourceElementsCollection.cs
- ObjectDataSourceEventArgs.cs
- SqlRowUpdatingEvent.cs
- WebBrowserProgressChangedEventHandler.cs
- Regex.cs
- MultiByteCodec.cs
- MethodSet.cs
- OpenTypeLayout.cs
- FrameworkTextComposition.cs
- SamlConditions.cs
- SimpleMailWebEventProvider.cs
- SqlDataSourceStatusEventArgs.cs
- AuthenticationModuleElement.cs
- ControlPropertyNameConverter.cs
- ComplexLine.cs
- XsdDataContractImporter.cs
- X509ScopedServiceCertificateElementCollection.cs
- EditorZoneBase.cs
- List.cs
- TrackBarDesigner.cs
- HtmlInputButton.cs
- securestring.cs
- XmlWrappingReader.cs
- XsdValidatingReader.cs
- ListViewGroupConverter.cs
- WebColorConverter.cs
- HttpClientChannel.cs
- Tag.cs
- GreaterThan.cs
- ToolStripRenderer.cs
- SourceFilter.cs
- ScriptResourceInfo.cs
- HasCopySemanticsAttribute.cs
- NameTable.cs
- StatusBarDrawItemEvent.cs
- AuthenticationService.cs
- RefreshEventArgs.cs
- SoapAttributes.cs
- FontConverter.cs
- Point4D.cs
- UIElementHelper.cs
- WebPartDisplayModeCancelEventArgs.cs
- StringHandle.cs
- Pair.cs
- ByeMessageCD1.cs
- ThreadExceptionEvent.cs
- DataSourceHelper.cs
- PackagePart.cs
- ExpressionVisitor.cs
- ResourcePool.cs
- SqlConnectionPoolGroupProviderInfo.cs
- RewritingProcessor.cs
- WebBrowserHelper.cs
- DecodeHelper.cs
- XmlSchemaSimpleContentExtension.cs
- EnumMemberAttribute.cs
- OdbcCommand.cs
- securitycriticaldata.cs
- SqlTypesSchemaImporter.cs
- Soap12ProtocolReflector.cs
- ResourceSetExpression.cs
- Converter.cs
- FormatterConverter.cs
- CodeTypeMember.cs
- _NetRes.cs
- ImageAttributes.cs
- RightsManagementInformation.cs
- CategoryAttribute.cs
- SymbolType.cs
- IndexedEnumerable.cs
- IItemProperties.cs
- InternalConfigSettingsFactory.cs
- XmlJsonReader.cs
- HwndSubclass.cs
- TypeNameConverter.cs
- VerificationAttribute.cs
- ChildChangedEventArgs.cs
- HScrollProperties.cs
- SyndicationSerializer.cs
- ResourcesGenerator.cs
- InfoCardConstants.cs
- TableLayoutPanelBehavior.cs
- PbrsForward.cs
- ValueTypeIndexerReference.cs
- SimpleBitVector32.cs
- CodeDirectionExpression.cs
- DataObjectFieldAttribute.cs
- FileFormatException.cs
- AliasedSlot.cs
- _AutoWebProxyScriptWrapper.cs
- SafeNativeMethods.cs
- UrlMappingsSection.cs