Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceRequestException.cs / 1 / 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
- DiscoveryService.cs
- QueryPageSettingsEventArgs.cs
- XmlImplementation.cs
- StrongNameIdentityPermission.cs
- CSharpCodeProvider.cs
- Query.cs
- SectionVisual.cs
- ListItem.cs
- nulltextcontainer.cs
- AssemblyHash.cs
- WebReferenceCollection.cs
- SimpleRecyclingCache.cs
- ScriptComponentDescriptor.cs
- DeclarativeCatalogPartDesigner.cs
- Material.cs
- HttpWebRequestElement.cs
- mactripleDES.cs
- JsonEncodingStreamWrapper.cs
- LayoutEngine.cs
- HtmlPageAdapter.cs
- IsolatedStorageFileStream.cs
- WebReferencesBuildProvider.cs
- ProfileInfo.cs
- TimelineCollection.cs
- GridViewRowEventArgs.cs
- TextSelectionHighlightLayer.cs
- CodeNamespaceImport.cs
- OptimizerPatterns.cs
- Opcode.cs
- SmtpReplyReader.cs
- XmlStreamNodeWriter.cs
- EntityCommandCompilationException.cs
- JoinSymbol.cs
- OperatingSystem.cs
- HostingEnvironmentException.cs
- WeakHashtable.cs
- EditorZone.cs
- SelfIssuedAuthAsymmetricKey.cs
- ProtocolsConfigurationEntry.cs
- CommonObjectSecurity.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DataList.cs
- Compiler.cs
- DocumentOrderQuery.cs
- Point3DCollection.cs
- InkCanvasSelection.cs
- XmlSchemaCollection.cs
- PolyLineSegmentFigureLogic.cs
- TypeTypeConverter.cs
- ContentDisposition.cs
- StyleXamlParser.cs
- ActionItem.cs
- RootBuilder.cs
- ZipIOCentralDirectoryFileHeader.cs
- RootBrowserWindowAutomationPeer.cs
- StateDesigner.Layouts.cs
- BitmapMetadataBlob.cs
- SqlStatistics.cs
- HybridDictionary.cs
- TriggerCollection.cs
- DodSequenceMerge.cs
- SynchronizationValidator.cs
- CompositeFontParser.cs
- XmlRawWriter.cs
- HtmlInputButton.cs
- AsymmetricSecurityProtocol.cs
- SiteOfOriginPart.cs
- TextMetrics.cs
- ThicknessConverter.cs
- PlatformNotSupportedException.cs
- SqlDataSourceSelectingEventArgs.cs
- Buffer.cs
- AnnotationAdorner.cs
- ProcessModelSection.cs
- DateTimeOffsetAdapter.cs
- FileIOPermission.cs
- BamlBinaryReader.cs
- XmlWriterSettings.cs
- AdCreatedEventArgs.cs
- Sentence.cs
- ArgIterator.cs
- ElementMarkupObject.cs
- LayoutEvent.cs
- ConfigurationPermission.cs
- DataGridViewCellValueEventArgs.cs
- PinProtectionHelper.cs
- FontStretchConverter.cs
- SoapBinding.cs
- Panel.cs
- EntityObject.cs
- EntityDataSourceQueryBuilder.cs
- CredentialCache.cs
- IsolatedStorageException.cs
- CollectionViewGroupRoot.cs
- TypedOperationInfo.cs
- PageTheme.cs
- DataSpaceManager.cs
- TextBounds.cs
- SystemWebExtensionsSectionGroup.cs
- AccessDataSourceView.cs