From eba8e9698c09b805d8ac2a8f58db93b947ac29e3 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 13 Jun 2020 00:28:35 +0800 Subject: refactor(back): Fix #100 . --- Timeline/Resources/Services/Exception.Designer.cs | 36 ------ Timeline/Resources/Services/Exception.resx | 12 -- Timeline/Resources/Services/Exceptions.Designer.cs | 135 +++++++++++++++++++++ Timeline/Resources/Services/Exceptions.resx | 124 +++++++++++++++++++ 4 files changed, 259 insertions(+), 48 deletions(-) create mode 100644 Timeline/Resources/Services/Exceptions.Designer.cs create mode 100644 Timeline/Resources/Services/Exceptions.resx (limited to 'Timeline/Resources') diff --git a/Timeline/Resources/Services/Exception.Designer.cs b/Timeline/Resources/Services/Exception.Designer.cs index 0c721d92..889aa1a7 100644 --- a/Timeline/Resources/Services/Exception.Designer.cs +++ b/Timeline/Resources/Services/Exception.Designer.cs @@ -69,15 +69,6 @@ namespace Timeline.Resources.Services { } } - /// - /// Looks up a localized string similar to A present resource conflicts with the given resource.. - /// - internal static string ConflictException { - get { - return ResourceManager.GetString("ConflictException", resourceCulture); - } - } - /// /// Looks up a localized string similar to The hashes password is of bad format. It might not be created by server.. /// @@ -258,33 +249,6 @@ namespace Timeline.Resources.Services { } } - /// - /// Looks up a localized string similar to Timeline does not exist. If this is a personal timeline, it means the user does not exist and inner exception should be a UserNotExistException.. - /// - internal static string TimelineNotExistException { - get { - return ResourceManager.GetString("TimelineNotExistException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The timeline post does not exist. You can't do operation on it.. - /// - internal static string TimelinePostNotExistException { - get { - return ResourceManager.GetString("TimelinePostNotExistException", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to The user does not exist.. - /// - internal static string UserNotExistException { - get { - 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.. /// diff --git a/Timeline/Resources/Services/Exception.resx b/Timeline/Resources/Services/Exception.resx index 660e5b3d..d455f0fc 100644 --- a/Timeline/Resources/Services/Exception.resx +++ b/Timeline/Resources/Services/Exception.resx @@ -120,9 +120,6 @@ The password is wrong. - - A present resource conflicts with the given resource. - The hashes password is of bad format. It might not be created by server. @@ -183,15 +180,6 @@ Password is of bad format. - - Timeline does not exist. If this is a personal timeline, it means the user does not exist and inner exception should be a UserNotExistException. - - - The timeline post does not exist. You can't do operation on it. - - - The user does not exist. - The token is of bad format, which means it may not be created by the server. diff --git a/Timeline/Resources/Services/Exceptions.Designer.cs b/Timeline/Resources/Services/Exceptions.Designer.cs new file mode 100644 index 00000000..84439716 --- /dev/null +++ b/Timeline/Resources/Services/Exceptions.Designer.cs @@ -0,0 +1,135 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Timeline.Resources.Services { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Exceptions { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Exceptions() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Timeline.Resources.Services.Exceptions", typeof(Exceptions).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to A entity of type "{0}" already exists.. + /// + internal static string EntityAlreadyExistError { + get { + return ResourceManager.GetString("EntityAlreadyExistError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The entity already exists.. + /// + internal static string EntityAlreadyExistErrorDefault { + get { + return ResourceManager.GetString("EntityAlreadyExistErrorDefault", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The required entity of type "{0}" does not exist.. + /// + internal static string EntityNotExistError { + get { + return ResourceManager.GetString("EntityNotExistError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The required entity does not exist.. + /// + internal static string EntityNotExistErrorDefault { + get { + return ResourceManager.GetString("EntityNotExistErrorDefault", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Request timeline name is "{0}". If this is a personal timeline whose name starts with '@', it means the user does not exist and inner exception should be a UserNotExistException.. + /// + internal static string TimelineNotExistException { + get { + return ResourceManager.GetString("TimelineNotExistException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Request timeline name is "{0}". Request timeline post id is "{1}".. + /// + internal static string TimelinePostNotExistException { + get { + return ResourceManager.GetString("TimelinePostNotExistException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Request timeline name is "{0}". Request timeline post id is "{1}". The post does not exist because it has been deleted.. + /// + internal static string TimelinePostNotExistExceptionDeleted { + get { + return ResourceManager.GetString("TimelinePostNotExistExceptionDeleted", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Request username is "{0}". Request id is "{1}".. + /// + internal static string UserNotExistException { + get { + return ResourceManager.GetString("UserNotExistException", resourceCulture); + } + } + } +} diff --git a/Timeline/Resources/Services/Exceptions.resx b/Timeline/Resources/Services/Exceptions.resx new file mode 100644 index 00000000..b064fd44 --- /dev/null +++ b/Timeline/Resources/Services/Exceptions.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + The required entity of type "{0}" does not exist. + + + The entity already exists. + + + A entity of type "{0}" already exists. + + + The required entity does not exist. + + + Request timeline name is "{0}". If this is a personal timeline whose name starts with '@', it means the user does not exist and inner exception should be a UserNotExistException. + + + Request timeline name is "{0}". Request timeline post id is "{1}". The post does not exist because it has been deleted. + + + Request timeline name is "{0}". Request timeline post id is "{1}". + + + Request username is "{0}". Request id is "{1}". + + \ No newline at end of file -- cgit v1.2.3