using System;
namespace Timeline.Services
{
///
/// Thrown when username is of bad format.
///
[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 message) : base(message) { Username = username; }
public UsernameBadFormatException(string username, string message, Exception inner) : base(message, inner) { Username = username; }
protected UsernameBadFormatException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
///
/// Username of bad format.
///
public string? Username { get; private set; }
}
}