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
- UIElementHelper.cs
- ValidatorCollection.cs
- IconBitmapDecoder.cs
- SpAudioStreamWrapper.cs
- ArgIterator.cs
- Nullable.cs
- ExtractCollection.cs
- TraceProvider.cs
- ToolStripItemClickedEventArgs.cs
- Assert.cs
- SqlCommandSet.cs
- KeyConverter.cs
- XMLUtil.cs
- ProjectedSlot.cs
- Trace.cs
- ZeroOpNode.cs
- DrawingAttributeSerializer.cs
- ScrollBar.cs
- DictionaryEntry.cs
- XamlHttpHandlerFactory.cs
- HtmlInputCheckBox.cs
- ReflectTypeDescriptionProvider.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ConfigurationSectionCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- EventTrigger.cs
- CollectionType.cs
- CollectionBuilder.cs
- GridViewDeleteEventArgs.cs
- HostedNamedPipeTransportManager.cs
- WsatConfiguration.cs
- Int32Rect.cs
- TextBox.cs
- JournalNavigationScope.cs
- CapacityStreamGeometryContext.cs
- LambdaCompiler.ControlFlow.cs
- Transform3D.cs
- AdornerHitTestResult.cs
- AssemblyNameProxy.cs
- EmptyControlCollection.cs
- XhtmlConformanceSection.cs
- SqlDependencyListener.cs
- DashStyle.cs
- ScrollChangedEventArgs.cs
- XmlReflectionMember.cs
- RtType.cs
- WebPartManagerInternals.cs
- adornercollection.cs
- WebScriptServiceHost.cs
- SessionEndedEventArgs.cs
- ImageAnimator.cs
- DynamicActivityXamlReader.cs
- remotingproxy.cs
- EditorZoneAutoFormat.cs
- FlagsAttribute.cs
- BlobPersonalizationState.cs
- PageRanges.cs
- SQLByte.cs
- SqlException.cs
- SafeRightsManagementSessionHandle.cs
- CharUnicodeInfo.cs
- HMACSHA256.cs
- CellQuery.cs
- TextContainerChangeEventArgs.cs
- FamilyTypeface.cs
- SignatureHelper.cs
- NamespaceQuery.cs
- CriticalExceptions.cs
- Common.cs
- UIPermission.cs
- CultureSpecificStringDictionary.cs
- XmlChildEnumerator.cs
- XmlSchemaAnnotated.cs
- GlobalProxySelection.cs
- codemethodreferenceexpression.cs
- TdsParameterSetter.cs
- ExceptionHandlers.cs
- FileSystemEventArgs.cs
- ErrorWrapper.cs
- VisualTarget.cs
- PathBox.cs
- RuntimeWrappedException.cs
- ContextMenuStripGroupCollection.cs
- Psha1DerivedKeyGenerator.cs
- PaginationProgressEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- DataTablePropertyDescriptor.cs
- Tracking.cs
- Thumb.cs
- DataViewSetting.cs
- SQLInt32Storage.cs
- BuildResultCache.cs
- HttpSessionStateBase.cs
- OleDbFactory.cs
- EdmRelationshipRoleAttribute.cs
- GrammarBuilderRuleRef.cs
- CancelRequestedQuery.cs
- BidirectionalDictionary.cs
- TcpConnectionPoolSettings.cs
- Rectangle.cs