duheng
2024-05-22 f0aaa59c3bb1ef75affcacadbcc8fae21149f52c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace IStation
{
    /// <summary>
    /// 自定义异常
    /// </summary>
    public class BimfaceException : Exception
    {
        public BimfaceException(string code)
        {
            this.Code = Bimface.ResultHelper.GetResultCode(code);
            this.Message = Bimface.ResultHelper.GetResultDescription(code);
        }
        public Bimface.eResultCode Code { get; private set; }
        public new string Message { get; private set; }
    }
}