//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Messaging {
using System;
using System.Diagnostics.CodeAnalysis;
///
/// An internal exception to throw if an internal error within the library requires
/// an abort of the operation.
///
///
/// This exception is internal to prevent clients of the library from catching what is
/// really an unexpected, potentially unrecoverable exception.
///
[SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "We want this to be internal so clients cannot catch it.")]
[Serializable]
internal class InternalErrorException : Exception {
///
/// Initializes a new instance of the class.
///
public InternalErrorException() { }
///
/// Initializes a new instance of the class.
///
/// The message.
public InternalErrorException(string message) : base(message) { }
///
/// Initializes a new instance of the class.
///
/// The message.
/// The inner exception.
public InternalErrorException(string message, Exception inner) : base(message, inner) { }
///
/// Initializes a new instance of the class.
///
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
///
/// The parameter is null.
///
///
/// The class name is null or is zero (0).
///
protected InternalErrorException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context)
: base(info, context) { }
}
}