Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceQueryException.cs / 1 / 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. //---------------------------------------------------------------------- //// 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
- TraceEventCache.cs
- GatewayDefinition.cs
- WebScriptServiceHostFactory.cs
- TreeWalkHelper.cs
- CdpEqualityComparer.cs
- DecoderNLS.cs
- MarginsConverter.cs
- XamlSerializerUtil.cs
- ViewManager.cs
- RadioButton.cs
- InkCanvasSelectionAdorner.cs
- GlobalEventManager.cs
- DataGridViewCellCollection.cs
- ContentIterators.cs
- recordstatescratchpad.cs
- NestedContainer.cs
- PagePropertiesChangingEventArgs.cs
- ReferenceService.cs
- Registry.cs
- XmlText.cs
- TableLayoutSettings.cs
- FontInfo.cs
- VisualCollection.cs
- TripleDESCryptoServiceProvider.cs
- GraphicsPathIterator.cs
- BmpBitmapDecoder.cs
- HttpProtocolReflector.cs
- DbConnectionPoolGroupProviderInfo.cs
- HttpServerVarsCollection.cs
- TypeLoadException.cs
- PropertyDescriptorComparer.cs
- DropTarget.cs
- XmlDeclaration.cs
- TabControl.cs
- IDataContractSurrogate.cs
- VerticalAlignConverter.cs
- CreateParams.cs
- SchemaTypeEmitter.cs
- RootProjectionNode.cs
- UIHelper.cs
- SystemGatewayIPAddressInformation.cs
- ThreadStartException.cs
- ToolBarButton.cs
- RangeValidator.cs
- MetadataItem_Static.cs
- OleDbDataReader.cs
- SymLanguageVendor.cs
- TextTreeFixupNode.cs
- ElementNotEnabledException.cs
- MediaPlayer.cs
- WebPartVerbsEventArgs.cs
- DefaultParameterValueAttribute.cs
- RichTextBoxDesigner.cs
- HScrollBar.cs
- FixedPage.cs
- SerializationFieldInfo.cs
- AssociationSet.cs
- SqlDataReaderSmi.cs
- ListDictionary.cs
- SessionChannels.cs
- SeekStoryboard.cs
- Light.cs
- WmlSelectionListAdapter.cs
- PointLightBase.cs
- ProjectionPruner.cs
- EntityDataSourceValidationException.cs
- QuadTree.cs
- BindingWorker.cs
- SoapMessage.cs
- QuaternionAnimationBase.cs
- RuleConditionDialog.cs
- StoreItemCollection.Loader.cs
- XPSSignatureDefinition.cs
- ClientTargetCollection.cs
- MediaCommands.cs
- TextEditorCopyPaste.cs
- BeginEvent.cs
- SoapReflectionImporter.cs
- ResXResourceWriter.cs
- ColorTransform.cs
- HtmlTableRowCollection.cs
- FilteredDataSetHelper.cs
- CanExecuteRoutedEventArgs.cs
- Size3DValueSerializer.cs
- ImageConverter.cs
- DrawToolTipEventArgs.cs
- ButtonBase.cs
- RequestValidator.cs
- Crypto.cs
- InputLangChangeEvent.cs
- MergeLocalizationDirectives.cs
- SHA512Managed.cs
- IDispatchConstantAttribute.cs
- GraphicsContext.cs
- HtmlTableRow.cs
- WebBrowserSiteBase.cs
- GridViewRowCollection.cs
- HttpCookie.cs
- BrowserCapabilitiesFactoryBase.cs
- RuleProcessor.cs