You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
814 B
33 lines
814 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
public class InvalidPasswordException : ArgumentException
|
|
{
|
|
private string Mdp { get; set; }
|
|
public InvalidPasswordException() : base()
|
|
{ }
|
|
|
|
public InvalidPasswordException(string mdp) :
|
|
base(String.Format("{0} n'est pas un mot de passe valide.", mdp))
|
|
{
|
|
Mdp = mdp;
|
|
}
|
|
public InvalidPasswordException(string mdp, string message) :
|
|
base(message)
|
|
{
|
|
Mdp = mdp;
|
|
}
|
|
|
|
public InvalidPasswordException(string mdp, string message, Exception innerException) :
|
|
base(message, innerException)
|
|
{
|
|
Mdp = mdp;
|
|
}
|
|
}
|
|
}
|