diff options
author | crupest <crupest@outlook.com> | 2020-01-23 20:51:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-23 20:51:02 +0800 |
commit | c72996ff9854aededc4ecfab92ef5d42167edd86 (patch) | |
tree | 1e722a0618cdb0fe3f784a0c4100727a5b2b3ece /Timeline/Services/UsernameBadFormatException.cs | |
parent | 4aadb05cd5718c7d16bf432c96e23ae4e7db4783 (diff) | |
download | timeline-c72996ff9854aededc4ecfab92ef5d42167edd86.tar.gz timeline-c72996ff9854aededc4ecfab92ef5d42167edd86.tar.bz2 timeline-c72996ff9854aededc4ecfab92ef5d42167edd86.zip |
...
Diffstat (limited to 'Timeline/Services/UsernameBadFormatException.cs')
-rw-r--r-- | Timeline/Services/UsernameBadFormatException.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Timeline/Services/UsernameBadFormatException.cs b/Timeline/Services/UsernameBadFormatException.cs index 991be7df..ad0350b5 100644 --- a/Timeline/Services/UsernameBadFormatException.cs +++ b/Timeline/Services/UsernameBadFormatException.cs @@ -9,11 +9,12 @@ namespace Timeline.Services public class UsernameBadFormatException : Exception
{
public UsernameBadFormatException() : base(Resources.Services.Exception.UsernameBadFormatException) { }
- public UsernameBadFormatException(string username) : this() { Username = username; }
- public UsernameBadFormatException(string username, Exception inner) : base(Resources.Services.Exception.UsernameBadFormatException, inner) { Username = username; }
+ 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; }
+ 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,
@@ -23,5 +24,7 @@ namespace Timeline.Services /// Username of bad format.
/// </summary>
public string Username { get; private set; } = "";
+
+ public string ValidationMessage { get; private set; } = "";
}
}
|