aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserNotExistException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-13 00:28:35 +0800
committercrupest <crupest@outlook.com>2020-06-13 00:28:35 +0800
commiteba8e9698c09b805d8ac2a8f58db93b947ac29e3 (patch)
treec3bf0aef9d80c19e9a71e9e9aaab16b8364db15b /Timeline/Services/UserNotExistException.cs
parentcc62df19e5f8aa216660915f46ff290c8eeab1d0 (diff)
downloadtimeline-eba8e9698c09b805d8ac2a8f58db93b947ac29e3.tar.gz
timeline-eba8e9698c09b805d8ac2a8f58db93b947ac29e3.tar.bz2
timeline-eba8e9698c09b805d8ac2a8f58db93b947ac29e3.zip
refactor(back): Fix #100 .
Diffstat (limited to 'Timeline/Services/UserNotExistException.cs')
-rw-r--r--Timeline/Services/UserNotExistException.cs41
1 files changed, 0 insertions, 41 deletions
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
-{
- /// <summary>
- /// The user requested does not exist.
- /// </summary>
- [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) { }
-
- /// <summary>
- /// The username of the user that does not exist.
- /// </summary>
- public string Username { get; set; } = "";
-
- /// <summary>
- /// The id of the user that does not exist.
- /// </summary>
- public long Id { get; set; }
- }
-}