From eba8e9698c09b805d8ac2a8f58db93b947ac29e3 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 13 Jun 2020 00:28:35 +0800 Subject: refactor(back): Fix #100 . --- Timeline/Services/UserNotExistException.cs | 41 ------------------------------ 1 file changed, 41 deletions(-) delete mode 100644 Timeline/Services/UserNotExistException.cs (limited to 'Timeline/Services/UserNotExistException.cs') diff --git a/Timeline/Services/UserNotExistException.cs b/Timeline/Services/UserNotExistException.cs deleted file mode 100644 index fd0b5ecf..00000000 --- a/Timeline/Services/UserNotExistException.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using Timeline.Helpers; - -namespace Timeline.Services -{ - /// - /// The user requested does not exist. - /// - [Serializable] - public class UserNotExistException : Exception - { - public UserNotExistException() : base(Resources.Services.Exception.UserNotExistException) { } - public UserNotExistException(string message, Exception inner) : base(message, inner) { } - - public UserNotExistException(string username) - : base(Log.Format(Resources.Services.Exception.UserNotExistException, ("Username", username))) - { - Username = username; - } - - public UserNotExistException(long id) - : base(Log.Format(Resources.Services.Exception.UserNotExistException, ("Id", id))) - { - Id = id; - } - - protected UserNotExistException( - System.Runtime.Serialization.SerializationInfo info, - System.Runtime.Serialization.StreamingContext context) : base(info, context) { } - - /// - /// The username of the user that does not exist. - /// - public string Username { get; set; } = ""; - - /// - /// The id of the user that does not exist. - /// - public long Id { get; set; } - } -} -- cgit v1.2.3