提交代码

This commit is contained in:
ldh
2026-11-19 16:42:26 +08:00
parent c5908eff03
commit 9d06abe41c
209 changed files with 158631 additions and 1311 deletions
@@ -0,0 +1,17 @@
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; }
}
}