blob: ad0350b5e06b84f988d5c08fc8739c7b66a36435 (
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
28
29
30
|
using System;
namespace Timeline.Services
{
/// <summary>
/// Thrown when username is of bad format.
/// </summary>
[Serializable]
public class UsernameBadFormatException : Exception
{
public UsernameBadFormatException() : base(Resources.Services.Exception.UsernameBadFormatException) { }
public UsernameBadFormatException(string message) : base(message) { }
public UsernameBadFormatException(string message, Exception inner) : base(message, inner) { }
public UsernameBadFormatException(string username, string validationMessage) : this() { Username = username; ValidationMessage = validationMessage; }
public UsernameBadFormatException(string username, string validationMessage, string message) : this(message) { Username = username; ValidationMessage = validationMessage; }
protected UsernameBadFormatException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
/// <summary>
/// Username of bad format.
/// </summary>
public string Username { get; private set; } = "";
public string ValidationMessage { get; private set; } = "";
}
}
|