Files
2026-11-19 16:42:26 +08:00

18 lines
535 B
C#

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