cloudflight
2024-11-30 83d116f68aa4e9e93f982d23f23a7a46680cd169
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace Yw.BIMFace
{
    /// <summary>
    /// 
    /// </summary>
    internal static class ExceptionHelper
    {
        /// <summary>
        /// 尝试抛异常
        /// </summary>
        public static void TryThrowException<T>(this GeneralResponse<T> response)
        {
            if (response == null)
            {
                return;
            }
            if (response.Code == Constants.Success)
            {
                return;
            }
            throw new BIMFaceException(response.Code);
        }
 
 
    }
}