aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/User/PasswordBadFormatException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-25 21:20:04 +0800
committercrupest <crupest@outlook.com>2021-04-25 21:20:04 +0800
commita4a75188bd17e31b39a02511bbd6d628bab5c909 (patch)
treef2f9c63eb5beabb7a1a2f2605c2d5022f6a72c08 /BackEnd/Timeline/Services/User/PasswordBadFormatException.cs
parent434be212c77bdade04722046e92c3dac25d0aff3 (diff)
downloadtimeline-a4a75188bd17e31b39a02511bbd6d628bab5c909.tar.gz
timeline-a4a75188bd17e31b39a02511bbd6d628bab5c909.tar.bz2
timeline-a4a75188bd17e31b39a02511bbd6d628bab5c909.zip
...
Diffstat (limited to 'BackEnd/Timeline/Services/User/PasswordBadFormatException.cs')
-rw-r--r--BackEnd/Timeline/Services/User/PasswordBadFormatException.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/User/PasswordBadFormatException.cs b/BackEnd/Timeline/Services/User/PasswordBadFormatException.cs
new file mode 100644
index 00000000..b9d76017
--- /dev/null
+++ b/BackEnd/Timeline/Services/User/PasswordBadFormatException.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace Timeline.Services.User
+{
+ [Serializable]
+ public class PasswordBadFormatException : Exception
+ {
+ public PasswordBadFormatException() : base(Resources.Services.Exception.PasswordBadFormatException) { }
+ public PasswordBadFormatException(string message) : base(message) { }
+ public PasswordBadFormatException(string message, Exception inner) : base(message, inner) { }
+
+ public PasswordBadFormatException(string password, string validationMessage) : this()
+ {
+ Password = password;
+ ValidationMessage = validationMessage;
+ }
+
+ protected PasswordBadFormatException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+
+ public string Password { get; set; } = "";
+
+ public string ValidationMessage { get; set; } = "";
+ }
+}