using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JiShe.CollectBus.IoTDB.Exceptions
{
    /// <summary>
    /// IoTDB异常
    /// </summary>
    public class IoTException : Exception
    {
        public int ErrorCode { get; }

        public IoTException(string message, int errorCode)
            : base($"{message} (Code: {errorCode})")
        {
            ErrorCode = errorCode;
        }
    }
}
