using System;
using System.Runtime.Serialization;
using Kreta.Framework.Localization;
using Kreta.Framework.Logging;
namespace Kreta.Framework.Security
{
///
/// Érvénytelen jelszó.
///
[FriendlyName(1000010, "Hibás felhasználónév vagy jelszó!")]
[ErrorCode(Events.SECURITY_LOGINFAILED)]
[Serializable]
public sealed class IncorrectPasswordException : SecurityException
{
///
/// Az osztály konstruktora
///
///
public IncorrectPasswordException(string loginName)
: base("Hibás felhasználónév vagy jelszó!")
{
this.SetValue("LoginName", loginName);
}
///
/// Az osztály konstruktora.
///
/// Sorosítási adatok
/// Sorosítási adatfolyam
IncorrectPasswordException(SerializationInfo info, StreamingContext context)
: base(info, context) { }
}
}