//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- namespace System.IdentityModel.Protocols.WSTrust { using System.Runtime.Serialization; /// /// Throw this exception when the request was invalid or malformed. /// [Serializable] public class InvalidRequestException : RequestException { /// /// Default constructor. /// public InvalidRequestException() : base( SR.GetString( SR.ID2005 ) ) { } /// /// Constructor with message. /// /// The message describes what was causing the exception. public InvalidRequestException( 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 InvalidRequestException( 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 InvalidRequestException( SerializationInfo info, StreamingContext context ) : base( info, context ) { } } }