//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Messaging.Bindings {
using System;
using System.Diagnostics.CodeAnalysis;
using System.Security.Permissions;
///
/// Thrown by a hosting application or web site when a cryptographic key is created with a
/// bucket and handle that conflicts with a previously stored and unexpired key.
///
[SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Specialized exception has no need of a message parameter.")]
[Serializable]
public class CryptoKeyCollisionException : ArgumentException {
///
/// Initializes a new instance of the class.
///
public CryptoKeyCollisionException() {
}
///
/// Initializes a new instance of the class.
///
/// The inner exception to include.
public CryptoKeyCollisionException(Exception inner) : base(null, inner) {
}
///
/// Initializes a new instance of the class.
///
/// The
/// that holds the serialized object data about the exception being thrown.
/// The System.Runtime.Serialization.StreamingContext
/// that contains contextual information about the source or destination.
protected CryptoKeyCollisionException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context)
: base(info, context) {
throw new NotImplementedException();
}
#if false
///
/// When overridden in a derived class, 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.
///
/// The parameter is a null reference (Nothing in Visual Basic).
///
///
///
///
///
[System.Security.SecurityCritical]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) {
base.GetObjectData(info, context);
throw new NotImplementedException();
}
#endif
}
}