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
- ServiceMetadataBehavior.cs
- CodeSubDirectoriesCollection.cs
- ToolStripOverflow.cs
- FileFormatException.cs
- TextEncodedRawTextWriter.cs
- MobileControlBuilder.cs
- WebPartActionVerb.cs
- Psha1DerivedKeyGenerator.cs
- DataPagerFieldItem.cs
- EventProviderBase.cs
- BitmapMetadataBlob.cs
- Model3DCollection.cs
- Overlapped.cs
- ExtensionWindowResizeGrip.cs
- SqlDesignerDataSourceView.cs
- DataReceivedEventArgs.cs
- SchemaName.cs
- AsyncResult.cs
- DragCompletedEventArgs.cs
- XmlNodeList.cs
- IconBitmapDecoder.cs
- TabItemWrapperAutomationPeer.cs
- ProviderIncompatibleException.cs
- LinkButton.cs
- PassportPrincipal.cs
- HighContrastHelper.cs
- SequentialUshortCollection.cs
- ProgressiveCrcCalculatingStream.cs
- Trace.cs
- ServiceMemoryGates.cs
- XmlAttributeProperties.cs
- validation.cs
- IntMinMaxAggregationOperator.cs
- AnnotationHighlightLayer.cs
- ShaderRenderModeValidation.cs
- InputLangChangeRequestEvent.cs
- MappingItemCollection.cs
- RoutedEventValueSerializer.cs
- PropertyBuilder.cs
- OleDbStruct.cs
- ToolStripItemClickedEventArgs.cs
- TableItemStyle.cs
- MenuItem.cs
- BasicExpandProvider.cs
- GroupQuery.cs
- CounterSampleCalculator.cs
- Win32Exception.cs
- OdbcEnvironment.cs
- DefaultValueAttribute.cs
- Expander.cs
- TraceProvider.cs
- WebContext.cs
- HtmlProps.cs
- VoiceObjectToken.cs
- SymmetricSecurityBindingElement.cs
- OrderByBuilder.cs
- ImportContext.cs
- FileLoadException.cs
- XmlSubtreeReader.cs
- PictureBox.cs
- TextEndOfParagraph.cs
- CodeConstructor.cs
- Merger.cs
- TypeUsage.cs
- RsaSecurityTokenAuthenticator.cs
- UIElementHelper.cs
- SmtpMail.cs
- CDSsyncETWBCLProvider.cs
- Repeater.cs
- DESCryptoServiceProvider.cs
- UndoManager.cs
- CompilationSection.cs
- IncomingWebRequestContext.cs
- ValidationSettings.cs
- SortFieldComparer.cs
- PointAnimationClockResource.cs
- DataGridViewCellValueEventArgs.cs
- PersonalizableAttribute.cs
- InvalidComObjectException.cs
- BoundsDrawingContextWalker.cs
- DeflateStream.cs
- _KerberosClient.cs
- Pkcs9Attribute.cs
- ComplusTypeValidator.cs
- ResXBuildProvider.cs
- DataSysAttribute.cs
- BooleanStorage.cs
- ProcessModelSection.cs
- Quad.cs
- MetadataArtifactLoaderComposite.cs
- FigureParagraph.cs
- CodeDirectiveCollection.cs
- AuthenticationManager.cs
- AdRotator.cs
- FormClosedEvent.cs
- AnnotationHighlightLayer.cs
- ConversionValidationRule.cs
- GenerateHelper.cs
- OpCodes.cs
- SelectingProviderEventArgs.cs