Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceQueryException.cs / 1305376 / DataServiceQueryException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Exception class for query requests. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; ////// The exception that is thrown when an error occurs while processing a batch request or /// during SaveChanges. /// #if !ASTORIA_LIGHT [Serializable] #endif [System.Diagnostics.DebuggerDisplay("{Message}")] public sealed class DataServiceQueryException : InvalidOperationException { #region Private fields. ///Actual response object. #if !ASTORIA_LIGHT [NonSerialized] #endif private readonly QueryOperationResponse response; #endregion Private fields. #region Constructors. ////// Creates a new instance of DataServiceQueryException. /// public DataServiceQueryException() : base(Strings.DataServiceException_GeneralError) { } ////// Creates a new instance of DataServiceQueryException. /// /// error message for this exception. public DataServiceQueryException(string message) : base(message) { } ////// Creates a new instance of DataServiceQueryException. /// /// error message for this exception. /// Exception that caused this exception to be thrown. public DataServiceQueryException(string message, Exception innerException) : base(message, innerException) { } ////// Creates a new instance of DataServiceQueryException. /// /// error message for this exception. /// Exception that caused this exception to be thrown. /// response object for this exception. public DataServiceQueryException(string message, Exception innerException, QueryOperationResponse response) : base(message, innerException) { this.response = response; } #if !ASTORIA_LIGHT #pragma warning disable 0628 ////// Initializes a new instance of the DataServiceQueryException class from the /// specified SerializationInfo and StreamingContext instances. /// /// /// A SerializationInfo containing the information required to serialize /// the new DataServiceQueryException. /// /// A StreamingContext containing the source of the serialized stream /// associated with the new DataServiceQueryException. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1047", Justification = "Follows serialization info pattern.")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032", Justification = "Follows serialization info pattern.")] protected DataServiceQueryException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #pragma warning restore 0628 #endif #endregion Constructors. #region Public properties. ///Error code to be used in payloads. public QueryOperationResponse Response { get { return this.response; } } #endregion Public properties. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AsnEncodedData.cs
- HtmlInputHidden.cs
- AnchorEditor.cs
- ItemList.cs
- BinaryFormatter.cs
- TopClause.cs
- Parameter.cs
- PathGeometry.cs
- ObjectComplexPropertyMapping.cs
- VirtualPath.cs
- ApplicationBuildProvider.cs
- CorruptingExceptionCommon.cs
- EncoderBestFitFallback.cs
- RedirectionProxy.cs
- ApplicationFileParser.cs
- InputBuffer.cs
- _ContextAwareResult.cs
- HelloMessageCD1.cs
- CommandPlan.cs
- CodeSubDirectory.cs
- HttpListenerContext.cs
- FragmentQueryProcessor.cs
- InfoCardClaimCollection.cs
- SignatureDescription.cs
- ClassValidator.cs
- OdbcEnvironmentHandle.cs
- _NestedMultipleAsyncResult.cs
- ShaperBuffers.cs
- DrawingImage.cs
- DataBoundControlAdapter.cs
- StorageScalarPropertyMapping.cs
- HttpListenerPrefixCollection.cs
- LoadedOrUnloadedOperation.cs
- XmlCharCheckingReader.cs
- OleDbParameter.cs
- EventEntry.cs
- TextServicesCompartment.cs
- AssemblyCollection.cs
- SelectionService.cs
- PartManifestEntry.cs
- MainMenu.cs
- PageBuildProvider.cs
- BuildProvidersCompiler.cs
- ColumnBinding.cs
- UnicodeEncoding.cs
- OdbcDataAdapter.cs
- DependencyPropertyValueSerializer.cs
- InputLanguageSource.cs
- Int32Rect.cs
- MULTI_QI.cs
- ExpressionBuilder.cs
- SettingsContext.cs
- UnsafeNativeMethodsPenimc.cs
- DomainUpDown.cs
- ImageInfo.cs
- OleDbConnectionInternal.cs
- AuthorizationRuleCollection.cs
- DecoratedNameAttribute.cs
- ObservableCollectionDefaultValueFactory.cs
- DbProviderFactory.cs
- Transactions.cs
- XsdBuilder.cs
- Simplifier.cs
- LifetimeServices.cs
- WebPartCatalogCloseVerb.cs
- ErrorFormatter.cs
- CompressEmulationStream.cs
- ProbeMatches11.cs
- GridViewUpdatedEventArgs.cs
- FormViewAutoFormat.cs
- KeyValueInternalCollection.cs
- TableLayoutSettingsTypeConverter.cs
- ProgressBar.cs
- SendActivity.cs
- MsmqBindingFilter.cs
- CollectionBase.cs
- ValueSerializer.cs
- HttpWebRequestElement.cs
- EntitySqlQueryCacheEntry.cs
- ConfigurationPropertyAttribute.cs
- ListViewItemCollectionEditor.cs
- DataViewManager.cs
- SelectionChangedEventArgs.cs
- WasAdminWrapper.cs
- PairComparer.cs
- DataSourceHelper.cs
- OpCodes.cs
- FileLogRecordStream.cs
- TextRunTypographyProperties.cs
- JsonGlobals.cs
- SqlClientWrapperSmiStreamChars.cs
- RegionIterator.cs
- XComponentModel.cs
- SqlServer2KCompatibilityCheck.cs
- ToolBarButtonClickEvent.cs
- WebPartEditorCancelVerb.cs
- CommandDesigner.cs
- SplayTreeNode.cs
- Module.cs
- HtmlButton.cs