From 4aadb05cd5718c7d16bf432c96e23ae4e7db4783 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 21 Jan 2020 01:11:17 +0800 Subject: ... --- Timeline/Resources/Services/Exception.Designer.cs | 96 +++++++++++------------ Timeline/Resources/Services/Exception.resx | 46 +++++------ 2 files changed, 71 insertions(+), 71 deletions(-) (limited to 'Timeline/Resources/Services') diff --git a/Timeline/Resources/Services/Exception.Designer.cs b/Timeline/Resources/Services/Exception.Designer.cs index 1b46f9e9..0a3325d4 100644 --- a/Timeline/Resources/Services/Exception.Designer.cs +++ b/Timeline/Resources/Services/Exception.Designer.cs @@ -178,92 +178,65 @@ namespace Timeline.Resources.Services { } /// - /// Looks up a localized string similar to The version of the jwt token is old.. + /// Looks up a localized string similar to The token didn't pass verification because {0}.. /// - internal static string JwtBadVersionException { + internal static string JwtUserTokenBadFormatException { get { - return ResourceManager.GetString("JwtBadVersionException", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatException", resourceCulture); } } /// - /// Looks up a localized string similar to The token didn't pass verification because {0}, see inner exception for information.. + /// Looks up a localized string similar to id claim is not a number. /// - internal static string JwtVerifyException { + internal static string JwtUserTokenBadFormatExceptionIdBadFormat { get { - return ResourceManager.GetString("JwtVerifyException", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatExceptionIdBadFormat", resourceCulture); } } /// - /// Looks up a localized string similar to token is expired.. + /// Looks up a localized string similar to id claim does not exist. /// - internal static string JwtVerifyExceptionExpired { + internal static string JwtUserTokenBadFormatExceptionIdMissing { get { - return ResourceManager.GetString("JwtVerifyExceptionExpired", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatExceptionIdMissing", resourceCulture); } } /// - /// Looks up a localized string similar to id claim is not a number.. + /// Looks up a localized string similar to other error, see inner exception for information. /// - internal static string JwtVerifyExceptionIdClaimBadFormat { + internal static string JwtUserTokenBadFormatExceptionOthers { get { - return ResourceManager.GetString("JwtVerifyExceptionIdClaimBadFormat", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatExceptionOthers", resourceCulture); } } /// - /// Looks up a localized string similar to id claim does not exist.. - /// - internal static string JwtVerifyExceptionNoIdClaim { - get { - return ResourceManager.GetString("JwtVerifyExceptionNoIdClaim", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to version claim does not exist.. - /// - internal static string JwtVerifyExceptionNoVersionClaim { - get { - return ResourceManager.GetString("JwtVerifyExceptionNoVersionClaim", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to version of token is old.. - /// - internal static string JwtVerifyExceptionOldVersion { - get { - return ResourceManager.GetString("JwtVerifyExceptionOldVersion", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to uncommon error.. + /// Looks up a localized string similar to unknown error. /// - internal static string JwtVerifyExceptionOthers { + internal static string JwtUserTokenBadFormatExceptionUnknown { get { - return ResourceManager.GetString("JwtVerifyExceptionOthers", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatExceptionUnknown", resourceCulture); } } /// - /// Looks up a localized string similar to unknown error code.. + /// Looks up a localized string similar to version claim is not a number.. /// - internal static string JwtVerifyExceptionUnknown { + internal static string JwtUserTokenBadFormatExceptionVersionBadFormat { get { - return ResourceManager.GetString("JwtVerifyExceptionUnknown", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatExceptionVersionBadFormat", resourceCulture); } } /// - /// Looks up a localized string similar to version claim is not a number.. + /// Looks up a localized string similar to version claim does not exist.. /// - internal static string JwtVerifyExceptionVersionClaimBadFormat { + internal static string JwtUserTokenBadFormatExceptionVersionMissing { get { - return ResourceManager.GetString("JwtVerifyExceptionVersionClaimBadFormat", resourceCulture); + return ResourceManager.GetString("JwtUserTokenBadFormatExceptionVersionMissing", resourceCulture); } } @@ -356,5 +329,32 @@ namespace Timeline.Resources.Services { return ResourceManager.GetString("UserNotExistException", resourceCulture); } } + + /// + /// Looks up a localized string similar to The token is of bad format, which means it may not be created by the server.. + /// + internal static string UserTokenBadFormatException { + get { + return ResourceManager.GetString("UserTokenBadFormatException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is of bad version.. + /// + internal static string UserTokenBadVersionException { + get { + return ResourceManager.GetString("UserTokenBadVersionException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The token is expired because its expiration time has passed.. + /// + internal static string UserTokenTimeExpireException { + get { + return ResourceManager.GetString("UserTokenTimeExpireException", resourceCulture); + } + } } } diff --git a/Timeline/Resources/Services/Exception.resx b/Timeline/Resources/Services/Exception.resx index 1d9c0037..bc96248d 100644 --- a/Timeline/Resources/Services/Exception.resx +++ b/Timeline/Resources/Services/Exception.resx @@ -156,36 +156,27 @@ Unknown format marker. - - The version of the jwt token is old. + + The token didn't pass verification because {0}. - - The token didn't pass verification because {0}, see inner exception for information. + + id claim is not a number - - token is expired. + + id claim does not exist - - id claim is not a number. + + other error, see inner exception for information - - id claim does not exist. - - - version claim does not exist. - - - version of token is old. - - - uncommon error. - - - unknown error code. + + unknown error - + version claim is not a number. + + version claim does not exist. + The timeline with that name already exists. @@ -216,4 +207,13 @@ The user does not exist. + + The token is of bad format, which means it may not be created by the server. + + + The token is of bad version. + + + The token is expired because its expiration time has passed. + \ No newline at end of file -- cgit v1.2.3