From 8c6fd742db249ad4cc819cf041eb98d880a3ef73 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期四, 02 一月 2025 15:09:07 +0800 Subject: [PATCH] 1 --- WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/CustomException/QuartzJobException.cs | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/CustomException/QuartzJobException.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/CustomException/QuartzJobException.cs index b2ce178..b9920ec 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/CustomException/QuartzJobException.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/CustomException/QuartzJobException.cs @@ -40,8 +40,14 @@ /// </summary> public string ErrorType { get; } + /// <summary> + /// 寮傚父瀵硅薄 + /// </summary> public Exception? BaseException { get; } + /// <summary> + /// 閿欒淇℃伅 + /// </summary> public override string Message => _message; private string _message; @@ -61,13 +67,19 @@ _message = message; } + /// <summary> + /// 杞瓧绗︿覆 + /// </summary> + /// <returns></returns> public override string ToString() { return base.ToString(); } } - + /// <summary> + /// + /// </summary> public enum QuartzJobErrorType { /// <summary> @@ -96,18 +108,39 @@ /// </summary> public class QuartzJobExceptionMessage { + /// <summary> + /// + /// </summary> public const string StartJobException = "璋冨害鏈嶅姟寮�鍚紓甯革紝閿欒淇℃伅:{0}"; + /// <summary> + /// + /// </summary> public const string StopJobException = "璋冨害鏈嶅姟鍋滄寮傚父锛岄敊璇俊鎭�:{0}"; + /// <summary> + /// + /// </summary> public const string AddJobException = "璋冨害璁″垝娣诲姞寮傚父锛氥�恵0}銆戯紝閿欒淇℃伅:{1}"; + /// <summary> + /// + /// </summary> public const string JobFactoryInstanceException = "浠嶧actory涓幏鍙朣cheduler瀹炰緥寮傚父锛岄敊璇俊鎭�:{0}"; + /// <summary> + /// + /// </summary> public const string StopAJobException = "璋冨害璁″垝銆恵0}銆戝仠姝㈠紓甯革紝閿欒淇℃伅:{1}"; + /// <summary> + /// + /// </summary> public const string ResumeJobException = "璋冨害璁″垝銆恵0}銆戞仮澶嶅紓甯革紝閿欒淇℃伅:{1}"; + /// <summary> + /// + /// </summary> public const string ExecuteJobException = "绔嬪嵆鎵ц璋冨害璁″垝锛氥�恵0}銆戝紓甯革紝閿欒淇℃伅:{1}"; } -- Gitblit v1.9.3