aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UsernameBadFormatException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
committercrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
commitb6043126fae039c58512f60a576b10925b06df4c (patch)
tree480e4e0fa03f0736cfee97876603fdb87d3fd3bd /Timeline/Services/UsernameBadFormatException.cs
parent1a653fca9e4e3371dd65782c987a736e2259d66a (diff)
downloadtimeline-b6043126fae039c58512f60a576b10925b06df4c.tar.gz
timeline-b6043126fae039c58512f60a576b10925b06df4c.tar.bz2
timeline-b6043126fae039c58512f60a576b10925b06df4c.zip
...
Diffstat (limited to 'Timeline/Services/UsernameBadFormatException.cs')
-rw-r--r--Timeline/Services/UsernameBadFormatException.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/Timeline/Services/UsernameBadFormatException.cs b/Timeline/Services/UsernameBadFormatException.cs
deleted file mode 100644
index ad0350b5..00000000
--- a/Timeline/Services/UsernameBadFormatException.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-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; } = "";
- }
-}