//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ using System; using System.Runtime.Serialization; namespace System.IdentityModel.Metadata { /// /// This indicates an error has occured while serializing/deserializing Saml /// metadata. /// [Serializable] public class MetadataSerializationException : Exception { /// /// Empty constructor. /// public MetadataSerializationException() : this(SR.GetString(SR.ID3198)) { } /// /// Constructor with message. /// /// The message describes what was causing the exception. public MetadataSerializationException(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 MetadataSerializationException(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 MetadataSerializationException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }