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
- DataGridViewCellStateChangedEventArgs.cs
- XmlSerializer.cs
- ExtendedProperty.cs
- RoutedEvent.cs
- XmlSchemaExternal.cs
- ListGeneralPage.cs
- GetPageNumberCompletedEventArgs.cs
- SuppressMergeCheckAttribute.cs
- SeparatorAutomationPeer.cs
- GrowingArray.cs
- GridViewRowEventArgs.cs
- RectangleF.cs
- ScrollChangedEventArgs.cs
- ToolstripProfessionalRenderer.cs
- StorageSetMapping.cs
- WrappedIUnknown.cs
- PeerInputChannel.cs
- WebDisplayNameAttribute.cs
- ConstructorNeedsTagAttribute.cs
- SystemInformation.cs
- MergeFailedEvent.cs
- ComPlusServiceLoader.cs
- Rect3D.cs
- ButtonBaseAdapter.cs
- XmlComment.cs
- WSTrust.cs
- CustomAttribute.cs
- DispatcherEventArgs.cs
- AdornerHitTestResult.cs
- DocumentScope.cs
- PartitionedStream.cs
- DrawingGroup.cs
- CollectionViewProxy.cs
- CodeNamespaceImport.cs
- HandleExceptionArgs.cs
- DbConnectionClosed.cs
- ApplicationSecurityManager.cs
- FileVersion.cs
- ChildrenQuery.cs
- ResourceManager.cs
- Item.cs
- TimeZone.cs
- MasterPageParser.cs
- SoapAttributes.cs
- DuplicateWaitObjectException.cs
- oledbconnectionstring.cs
- SizeF.cs
- AxisAngleRotation3D.cs
- FindCriteriaCD1.cs
- XsltArgumentList.cs
- TlsnegoTokenProvider.cs
- DeviceContext2.cs
- WorkItem.cs
- EndpointDiscoveryMetadataCD1.cs
- SineEase.cs
- DataSetFieldSchema.cs
- AppSettingsReader.cs
- ButtonStandardAdapter.cs
- ControlValuePropertyAttribute.cs
- AmbientValueAttribute.cs
- DrawingAttributes.cs
- SamlAuthorizationDecisionStatement.cs
- NullExtension.cs
- BitmapEffectGroup.cs
- ServiceDocument.cs
- RuleSettings.cs
- DoubleCollectionValueSerializer.cs
- EventEntry.cs
- QilXmlReader.cs
- XamlFilter.cs
- ScriptBehaviorDescriptor.cs
- ExecutionEngineException.cs
- SecurityChannelFaultConverter.cs
- SqlFacetAttribute.cs
- ViewCellSlot.cs
- TableCellCollection.cs
- ExceptionDetail.cs
- FormClosedEvent.cs
- RoleGroup.cs
- XmlTextReaderImplHelpers.cs
- SByteStorage.cs
- DefinitionUpdate.cs
- EventDescriptorCollection.cs
- ClosableStream.cs
- RequestCacheEntry.cs
- WebPartConnection.cs
- Identity.cs
- HiddenField.cs
- DataGridViewCellCollection.cs
- LoadGrammarCompletedEventArgs.cs
- SqlWebEventProvider.cs
- DPCustomTypeDescriptor.cs
- EntityDataSourceReferenceGroup.cs
- RuntimeConfigLKG.cs
- XamlHostingSectionGroup.cs
- Point.cs
- ClientData.cs
- TableItemPattern.cs
- Preprocessor.cs
- Avt.cs