提交代码
This commit is contained in:
@@ -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 >> 8);0 表示 USB 层错误。</summary>
|
||||
public int Code { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user