aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/PasswordBadFormatException.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
commit2750a3df1834c1c6623aa8c653504c7bc12cefd6 (patch)
tree480e4e0fa03f0736cfee97876603fdb87d3fd3bd /Timeline/Services/PasswordBadFormatException.cs
parent20347298c57e97287f586479fd9a52ba85565406 (diff)
downloadtimeline-2750a3df1834c1c6623aa8c653504c7bc12cefd6.tar.gz
timeline-2750a3df1834c1c6623aa8c653504c7bc12cefd6.tar.bz2
timeline-2750a3df1834c1c6623aa8c653504c7bc12cefd6.zip
...
Diffstat (limited to 'Timeline/Services/PasswordBadFormatException.cs')
-rw-r--r--Timeline/Services/PasswordBadFormatException.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Timeline/Services/PasswordBadFormatException.cs b/Timeline/Services/PasswordBadFormatException.cs
new file mode 100644
index 00000000..2029ebb4
--- /dev/null
+++ b/Timeline/Services/PasswordBadFormatException.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace Timeline.Services
+{
+
+ [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; } = "";
+ }
+}