using System; namespace HardwareControl.Core.Spectrometer.ZioLink { /// ZioLink 协议或 USB 通信错误。 internal sealed class ZioLinkException : Exception { public ZioLinkException(int code, string message, Exception? innerException = null) : base(message, innerException) { Code = code; } /// 设备返回的错误码(报文头 status >> 8);0 表示 USB 层错误。 public int Code { get; } } }