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
- HttpValueCollection.cs
- ObjectPropertyMapping.cs
- CodeCastExpression.cs
- BamlStream.cs
- RtType.cs
- HwndMouseInputProvider.cs
- OleStrCAMarshaler.cs
- XmlDataSourceView.cs
- VirtualPathUtility.cs
- UrlMappingsModule.cs
- XmlSchemaIdentityConstraint.cs
- SiteIdentityPermission.cs
- ExpressionVisitor.cs
- ToolStripMenuItem.cs
- GeometryDrawing.cs
- ArrayList.cs
- InvokeProviderWrapper.cs
- RectIndependentAnimationStorage.cs
- PrimaryKeyTypeConverter.cs
- SQLUtility.cs
- DoubleAnimationClockResource.cs
- WebPartEditorOkVerb.cs
- Comparer.cs
- ColorDialog.cs
- ADMembershipUser.cs
- MachineKeyConverter.cs
- DebuggerAttributes.cs
- WorkflowCompensationBehavior.cs
- ContentPosition.cs
- HandlerFactoryWrapper.cs
- EndPoint.cs
- GradientStop.cs
- AccessViolationException.cs
- LoginUtil.cs
- DataRelation.cs
- wgx_commands.cs
- FileDialog.cs
- AspProxy.cs
- StreamUpgradeBindingElement.cs
- DecoderNLS.cs
- DefaultIfEmptyQueryOperator.cs
- XmlSchemaChoice.cs
- GeneratedView.cs
- PolyBezierSegment.cs
- OperatorExpressions.cs
- PropertySourceInfo.cs
- Int32RectConverter.cs
- SqlMethodCallConverter.cs
- GridViewItemAutomationPeer.cs
- FormsAuthenticationModule.cs
- JpegBitmapEncoder.cs
- DbProviderFactories.cs
- EventWaitHandle.cs
- UserPreferenceChangedEventArgs.cs
- DataChangedEventManager.cs
- SessionStateUtil.cs
- SqlCacheDependency.cs
- OrderedDictionary.cs
- AutomationPatternInfo.cs
- FileUtil.cs
- EventMappingSettingsCollection.cs
- X509CertificateClaimSet.cs
- ListChangedEventArgs.cs
- MimeParameterWriter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GridViewUpdatedEventArgs.cs
- ObjectView.cs
- Help.cs
- DirectionalLight.cs
- XmlDeclaration.cs
- WsatAdminException.cs
- MemoryPressure.cs
- SqlSupersetValidator.cs
- PackagingUtilities.cs
- ScalarType.cs
- TextEditorContextMenu.cs
- CodeAssignStatement.cs
- InternalsVisibleToAttribute.cs
- SID.cs
- CodeAttachEventStatement.cs
- GPPOINTF.cs
- HttpConfigurationContext.cs
- ComponentEditorPage.cs
- TextRunTypographyProperties.cs
- RangeValuePatternIdentifiers.cs
- RawTextInputReport.cs
- FormatConvertedBitmap.cs
- PixelFormatConverter.cs
- ShapeTypeface.cs
- DefaultAssemblyResolver.cs
- XmlStringTable.cs
- DataKey.cs
- ActivityExecutorDelegateInfo.cs
- SoapFault.cs
- OperationAbortedException.cs
- HealthMonitoringSectionHelper.cs
- CodeSnippetExpression.cs
- SafeCryptContextHandle.cs
- DataPointer.cs
- CompilerState.cs