将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。

This commit is contained in:
QI Mingxuan
2026-04-16 17:31:13 +08:00
parent 6ec4c3ddaa
commit 2bd6e566c3
581 changed files with 74600 additions and 222 deletions
@@ -0,0 +1,22 @@
using System;
namespace XP.Common.PdfViewer.Exceptions
{
/// <summary>
/// 打印机未找到异常 | Printer not found exception
/// 当指定的打印机名称不存在或不可用时抛出 | Thrown when specified printer is not found or unavailable
/// </summary>
public class PrinterNotFoundException : Exception
{
/// <summary>
/// 未找到的打印机名称 | Name of the printer that was not found
/// </summary>
public string PrinterName { get; }
public PrinterNotFoundException(string printerName)
: base($"打印机未找到 | Printer not found: {printerName}")
{
PrinterName = printerName;
}
}
}