将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user