Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceRequestException.cs / 1305376 / DataServiceRequestException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Exception class for batch requests and CUD operations. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; ////// The exception that is thrown when executing a single query request. /// #if !ASTORIA_LIGHT [Serializable] #endif [System.Diagnostics.DebuggerDisplay("{Message}")] public sealed class DataServiceRequestException : InvalidOperationException { ///Actual response object. #if !ASTORIA_LIGHT [NonSerialized] #endif private readonly DataServiceResponse response; #region Constructors. ////// Creates a new instance of DataServiceRequestException. /// public DataServiceRequestException() : base(Strings.DataServiceException_GeneralError) { } ////// Creates a new instance of DataServiceRequestException. /// /// error message for this exception. public DataServiceRequestException(string message) : base(message) { } ////// Creates a new instance of DataServiceRequestException. /// /// error message for this exception. /// Exception that caused this exception to be thrown. public DataServiceRequestException(string message, Exception innerException) : base(message, innerException) { } ////// Creates a new instance of DataServiceRequestException. /// /// error message for this exception. /// Exception that caused this exception to be thrown. /// response object for this exception. public DataServiceRequestException(string message, Exception innerException, DataServiceResponse 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 DataServiceException. /// /// A StreamingContext containing the source of the serialized stream /// associated with the new DataServiceException. [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 DataServiceRequestException(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 DataServiceResponse 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 batch requests and CUD operations. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; ////// The exception that is thrown when executing a single query request. /// #if !ASTORIA_LIGHT [Serializable] #endif [System.Diagnostics.DebuggerDisplay("{Message}")] public sealed class DataServiceRequestException : InvalidOperationException { ///Actual response object. #if !ASTORIA_LIGHT [NonSerialized] #endif private readonly DataServiceResponse response; #region Constructors. ////// Creates a new instance of DataServiceRequestException. /// public DataServiceRequestException() : base(Strings.DataServiceException_GeneralError) { } ////// Creates a new instance of DataServiceRequestException. /// /// error message for this exception. public DataServiceRequestException(string message) : base(message) { } ////// Creates a new instance of DataServiceRequestException. /// /// error message for this exception. /// Exception that caused this exception to be thrown. public DataServiceRequestException(string message, Exception innerException) : base(message, innerException) { } ////// Creates a new instance of DataServiceRequestException. /// /// error message for this exception. /// Exception that caused this exception to be thrown. /// response object for this exception. public DataServiceRequestException(string message, Exception innerException, DataServiceResponse 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 DataServiceException. /// /// A StreamingContext containing the source of the serialized stream /// associated with the new DataServiceException. [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 DataServiceRequestException(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 DataServiceResponse 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
- ReaderWriterLock.cs
- ChannelSettingsElement.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Visitors.cs
- CompatibleIComparer.cs
- QilTypeChecker.cs
- IconHelper.cs
- DataServiceKeyAttribute.cs
- HtmlProps.cs
- FrameworkPropertyMetadata.cs
- RegisteredScript.cs
- SynchronousReceiveElement.cs
- DrawingImage.cs
- ToolStrip.cs
- Pkcs7Recipient.cs
- SqlDataSourceCustomCommandEditor.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- OdbcEnvironment.cs
- SessionState.cs
- DependencyPropertyKind.cs
- BigInt.cs
- CoTaskMemHandle.cs
- SHA384Cng.cs
- WS2007FederationHttpBindingCollectionElement.cs
- SessionPageStateSection.cs
- MachineSettingsSection.cs
- SchemaImporterExtension.cs
- ExtendedProtectionPolicy.cs
- ObjectDataSourceView.cs
- XmlSerializationReader.cs
- Paragraph.cs
- TableLayoutColumnStyleCollection.cs
- ComplexBindingPropertiesAttribute.cs
- EncoderFallback.cs
- TableLayoutSettingsTypeConverter.cs
- BitmapMetadataEnumerator.cs
- CommandSet.cs
- DBDataPermission.cs
- TabControlEvent.cs
- storagemappingitemcollection.viewdictionary.cs
- WorkflowRuntimeServiceElementCollection.cs
- Setter.cs
- WebPartVerbsEventArgs.cs
- ImpersonateTokenRef.cs
- IProvider.cs
- VBCodeProvider.cs
- TreeNodeClickEventArgs.cs
- InvalidCardException.cs
- QilInvokeEarlyBound.cs
- Queue.cs
- TcpAppDomainProtocolHandler.cs
- Calendar.cs
- WindowsContainer.cs
- WebPartEditorApplyVerb.cs
- Util.cs
- XmlCustomFormatter.cs
- CodeAttributeArgumentCollection.cs
- DateTimeEditor.cs
- DateTimeValueSerializer.cs
- Missing.cs
- SetterTriggerConditionValueConverter.cs
- X509Certificate.cs
- ResourceCategoryAttribute.cs
- InvariantComparer.cs
- SecUtil.cs
- MsmqVerifier.cs
- ColorMap.cs
- DesignerActionKeyboardBehavior.cs
- TraceContextEventArgs.cs
- FakeModelPropertyImpl.cs
- UserPersonalizationStateInfo.cs
- PropertyValidationContext.cs
- RewritingSimplifier.cs
- ConfigurationManagerInternal.cs
- EventPrivateKey.cs
- SafeThreadHandle.cs
- _UncName.cs
- CachedCompositeFamily.cs
- DtrList.cs
- SafeRightsManagementHandle.cs
- WebPartDisplayModeEventArgs.cs
- ListViewItemSelectionChangedEvent.cs
- cookiecollection.cs
- WorkflowOwnershipException.cs
- SecurityResources.cs
- SubtreeProcessor.cs
- WebPartZone.cs
- ExpressionVisitor.cs
- XsltConvert.cs
- ReferenceConverter.cs
- SmtpNetworkElement.cs
- UnlockCardRequest.cs
- HtmlDocument.cs
- ValidationPropertyAttribute.cs
- StreamDocument.cs
- DesignerImageAdapter.cs
- HtmlDocument.cs
- MailAddressCollection.cs
- DeploymentExceptionMapper.cs
- QueryCacheEntry.cs