using System;
using System.Runtime.Serialization;
namespace S22.Sasl {
///
/// The exception is thrown when a Sasl-related error or unexpected condition occurs.
///
[Serializable()]
internal class SaslException : Exception {
///
/// Initializes a new instance of the SaslException class
///
public SaslException() : base() { }
///
/// Initializes a new instance of the SaslException class with its message
/// string set to .
///
/// A description of the error. The content of message is intended
/// to be understood by humans.
public SaslException(string message) : base(message) { }
///
/// Initializes a new instance of the SaslException class with its message
/// string set to and a reference to the inner exception that
/// is the cause of this exception.
///
/// A description of the error. The content of message is intended
/// to be understood by humans.
/// The exception that is the cause of the current exception.
public SaslException(string message, Exception inner) : base(message, inner) { }
///
/// Initializes a new instance of the SaslException class with the specified
/// serialization and context information.
///
/// An object that holds the serialized object data about the exception
/// being thrown.
/// An object that contains contextual information about the source
/// or destination.
protected SaslException(System.Runtime.Serialization.SerializationInfo info, StreamingContext context)
: base(info, context) { }
}
}