aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/JwtBadVersionException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-23 20:51:02 +0800
committercrupest <crupest@outlook.com>2020-01-23 20:51:02 +0800
commit42215e7d28d6144e5a19f77ddc060c42b7afdad5 (patch)
tree1e722a0618cdb0fe3f784a0c4100727a5b2b3ece /Timeline/Services/JwtBadVersionException.cs
parent747bf829351c30069647a44f98ac19f1a214370f (diff)
downloadtimeline-42215e7d28d6144e5a19f77ddc060c42b7afdad5.tar.gz
timeline-42215e7d28d6144e5a19f77ddc060c42b7afdad5.tar.bz2
timeline-42215e7d28d6144e5a19f77ddc060c42b7afdad5.zip
...
Diffstat (limited to 'Timeline/Services/JwtBadVersionException.cs')
-rw-r--r--Timeline/Services/JwtBadVersionException.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/Timeline/Services/JwtBadVersionException.cs b/Timeline/Services/JwtBadVersionException.cs
deleted file mode 100644
index 4ce17710..00000000
--- a/Timeline/Services/JwtBadVersionException.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using Timeline.Helpers;
-
-namespace Timeline.Services
-{
- [Serializable]
- public class JwtBadVersionException : Exception
- {
- public JwtBadVersionException() : base(Resources.Services.Exception.JwtBadVersionException) { }
- public JwtBadVersionException(string message) : base(message) { }
- public JwtBadVersionException(string message, Exception inner) : base(message, inner) { }
-
- public JwtBadVersionException(long tokenVersion, long requiredVersion)
- : base(Log.Format(Resources.Services.Exception.JwtBadVersionException,
- ("Token Version", tokenVersion),
- ("Required Version", requiredVersion)))
- {
- TokenVersion = tokenVersion;
- RequiredVersion = requiredVersion;
- }
-
- protected JwtBadVersionException(
- System.Runtime.Serialization.SerializationInfo info,
- System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
-
- /// <summary>
- /// The version in the token.
- /// </summary>
- public long? TokenVersion { get; set; }
-
- /// <summary>
- /// The version required.
- /// </summary>
- public long? RequiredVersion { get; set; }
- }
-}