blob: 2029ebb475648a1cc1e5676824f290b08d5cd2c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using System;
namespace Timeline.Services
{
[Serializable]
public class PasswordBadFormatException : Exception
{
public PasswordBadFormatException() : base(Resources.Services.Exception.PasswordBadFormatException) { }
public PasswordBadFormatException(string message) : base(message) { }
public PasswordBadFormatException(string message, Exception inner) : base(message, inner) { }
public PasswordBadFormatException(string password, string validationMessage) : this()
{
Password = password;
ValidationMessage = validationMessage;
}
protected PasswordBadFormatException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
public string Password { get; set; } = "";
public string ValidationMessage { get; set; } = "";
}
}
|