//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.IdentityModel { using System; using System.Runtime.Serialization; /// /// Throw this exception if the specified request failed due to an external reason that cannot be specifically determined. /// [Serializable] public class RequestFailedException : RequestException { /// /// Default constructor. /// public RequestFailedException() : base(SR.GetString(SR.ID2008)) { } /// /// Constructor with message. /// /// The message describes what was causing the exception. public RequestFailedException(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 RequestFailedException(string message, Exception innerException) : base(message, innerException) { } /// /// Constructor that sets the System.Runtime.Serialization.SerializationInfo 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 RequestFailedException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }