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
- WebPartCancelEventArgs.cs
- NegatedConstant.cs
- ProviderConnectionPoint.cs
- FileDataSource.cs
- TableRow.cs
- IResourceProvider.cs
- InputScope.cs
- RepeatInfo.cs
- GridViewRow.cs
- CompilerError.cs
- XhtmlConformanceSection.cs
- GACIdentityPermission.cs
- HtmlInputReset.cs
- CodeLabeledStatement.cs
- ToolStripSeparatorRenderEventArgs.cs
- OleDbInfoMessageEvent.cs
- GraphicsPathIterator.cs
- ShaderEffect.cs
- PaintValueEventArgs.cs
- DataDocumentXPathNavigator.cs
- FormCollection.cs
- _ShellExpression.cs
- CommandBinding.cs
- InputReferenceExpression.cs
- TrustLevelCollection.cs
- InputReportEventArgs.cs
- FieldToken.cs
- NumericUpDownAccelerationCollection.cs
- CharEntityEncoderFallback.cs
- SystemDiagnosticsSection.cs
- Vector.cs
- ToolboxDataAttribute.cs
- PropertyConverter.cs
- CompilerWrapper.cs
- SafeSecurityHelper.cs
- LayoutEvent.cs
- HtmlInputHidden.cs
- FieldMetadata.cs
- ProcessModelSection.cs
- SegmentInfo.cs
- CompilationSection.cs
- SQLMembershipProvider.cs
- WebPartCatalogCloseVerb.cs
- NotifyIcon.cs
- EdmScalarPropertyAttribute.cs
- ButtonChrome.cs
- DateTimeFormatInfo.cs
- FillErrorEventArgs.cs
- Hex.cs
- StreamResourceInfo.cs
- SoapClientProtocol.cs
- SoapClientMessage.cs
- TreeNodeBindingCollection.cs
- EditingScope.cs
- ManagedFilter.cs
- Fonts.cs
- GridViewRowCollection.cs
- TableLayout.cs
- Group.cs
- StrokeCollectionConverter.cs
- CustomLineCap.cs
- FamilyCollection.cs
- TracePayload.cs
- DataControlImageButton.cs
- JapaneseCalendar.cs
- DependencySource.cs
- Int32CAMarshaler.cs
- ObjectKeyFrameCollection.cs
- ConfigurationLocation.cs
- XamlWrapperReaders.cs
- sqlser.cs
- InkCanvasInnerCanvas.cs
- COM2Properties.cs
- ClientBuildManager.cs
- RangeExpression.cs
- SafePipeHandle.cs
- InvalidCommandTreeException.cs
- SR.cs
- AdobeCFFWrapper.cs
- GraphicsPath.cs
- AppSettingsExpressionBuilder.cs
- TextAdaptor.cs
- UIPermission.cs
- RuleEngine.cs
- DataTable.cs
- SiteMapProvider.cs
- ArraySubsetEnumerator.cs
- UICuesEvent.cs
- Function.cs
- EditorZone.cs
- EmptyEnumerator.cs
- MemberProjectedSlot.cs
- ActivitySurrogateSelector.cs
- ActivityExecutionWorkItem.cs
- AdjustableArrowCap.cs
- ObjectViewListener.cs
- ScriptBehaviorDescriptor.cs
- MonthCalendar.cs
- SpotLight.cs
- DoubleAnimationUsingKeyFrames.cs