namespace Khaemhat.Core.Security;
///
/// A secret could not be decrypted: wrong instance key, wrong purpose or damaged value. The message never contains
/// the secret or the ciphertext.
///
public sealed class SecretProtectionException : Exception
{
/// Creates the exception.
public SecretProtectionException() : base("The secret cannot be decrypted.")
{
}
/// Creates the exception with a message.
/// The message (never the secret).
public SecretProtectionException(string message) : base(message)
{
}
/// Creates the exception with a message and a cause.
/// The message (never the secret).
/// The cause.
public SecretProtectionException(string message, Exception innerException) : base(message, innerException)
{
}
}