//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.IdentityModel { using System; using System.Runtime.Serialization; /// /// This class defines the exception thrown during an asynchrous process. /// [Serializable] public class AsynchronousOperationException : Exception { /// /// Default constructor. /// public AsynchronousOperationException() : base(SR.GetString(SR.ID4004)) { } /// /// Constructor with message. /// /// The message describes what was causing the exception. public AsynchronousOperationException(string message) : base(message) { } /// /// Constructor with message and inner exception. /// /// The message describes what was causing the exception. /// The inner exception indicates the real reason the exception was thrown. public AsynchronousOperationException(string message, Exception innerException) : base(message, innerException) { } /// /// Constructor with inner exception. /// /// The inner exception indicates the real reason the exception was thrown. public AsynchronousOperationException(Exception innerException) : base(SR.GetString(SR.ID4004), innerException) { } /// /// Constructor that sets the with information about the exception. /// /// The that holds the serialized object data about the exception being thrown. /// The . that contains contextual information about the source or destination. protected AsynchronousOperationException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }