KnownException

作者: 落地成佛 | 来源:发表于2022-04-09 23:06 被阅读0次
        public class KnownException : IKnownException
        {
            public string Message { get; private set; }
    
            public int ErrorCode { get; private set; }
    
            public object[] ErrorData { get; private set; }
    
            public readonly static IKnownException Unknown = new KnownException { Message = "未知错误", ErrorCode = 9999 };
    
            public static IKnownException FromKnownException(IKnownException exception)
            {
                return new KnownException { Message = exception.Message, ErrorCode = exception.ErrorCode, ErrorData = exception.ErrorData };
           
    

    相关文章

      网友评论

        本文标题:KnownException

        本文链接:https://www.haomeiwen.com/subject/jmpmsrtx.html