utils/EX/MyException.cs

(完整代码) 778B

using System;
using System.Collections.Generic;
using System.Text;

namespace utils.EX
{
    /// <summary>
    /// 异常类
    /// </summary>
    [Serializable]
    public class MyException : ApplicationException
    {
        private readonly ExceptionResult _exceptionResult;
        public MyException() { }
        public MyException(int resultStatus, string resultMsg) : base(resultMsg)
        {
            _exceptionResult = new ExceptionResult { resultMsg = resultMsg, resultStatus = resultStatus };
        }
        public ExceptionResult GetExceptionResult()
        {
            return _exceptionResult;
        }
    }
    public class ExceptionResult
    {
        public int resultStatus { get; set; }
        public string resultMsg { get; set; }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。