//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.IdentityModel { using System; using System.Runtime.Serialization; /// /// The specified RequestSecurityToken is not understood. /// [Serializable] public class BadRequestException : RequestException { /// /// Default constructor. /// public BadRequestException() : base(SR.GetString(SR.ID2009)) { } /// /// Constructor with message. /// /// The message describes what was causing the exception. public BadRequestException(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 BadRequestException(string message, Exception innerException) : base(message, 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 BadRequestException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }