23 lines
718 B
C#
23 lines
718 B
C#
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;
|
|
}
|
|
}
|
|
}
|