//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ using System; using System.Runtime.Serialization; namespace System.IdentityModel { /// /// Base class for exceptions thrown on request failures. /// [Serializable] public abstract class RequestException : Exception { /// /// Default constructor. /// protected RequestException() { } /// /// Constructor with message. /// /// The message describes what was causing the exception. protected RequestException( 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. protected RequestException( 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 RequestException( SerializationInfo info, StreamingContext context ) : base( info, context ) { } } }