aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/User/BadPasswordException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Services/User/BadPasswordException.cs')
-rw-r--r--BackEnd/Timeline/Services/User/BadPasswordException.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/User/BadPasswordException.cs b/BackEnd/Timeline/Services/User/BadPasswordException.cs
new file mode 100644
index 00000000..7302fbca
--- /dev/null
+++ b/BackEnd/Timeline/Services/User/BadPasswordException.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace Timeline.Services.User
+{
+ [Serializable]
+ public class BadPasswordException : Exception
+ {
+ public BadPasswordException() : this(null, null, null) { }
+ public BadPasswordException(string? badPassword) : this(badPassword, null, null) { }
+ public BadPasswordException(string? badPassword, Exception? inner) : this(badPassword, null, inner) { }
+ public BadPasswordException(string? badPassword, string? message, Exception? inner) : base(message ?? Resource.ExceptionBadPassword, inner)
+ {
+ Password = badPassword;
+ }
+
+ protected BadPasswordException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+
+ /// <summary>
+ /// The wrong password.
+ /// </summary>
+ public string? Password { get; set; }
+ }
+}