using System; namespace XP.Common.PdfViewer.Exceptions { /// /// 打印机未找到异常 | Printer not found exception /// 当指定的打印机名称不存在或不可用时抛出 | Thrown when specified printer is not found or unavailable /// public class PrinterNotFoundException : Exception { /// /// 未找到的打印机名称 | Name of the printer that was not found /// public string PrinterName { get; } public PrinterNotFoundException(string printerName) : base($"打印机未找到 | Printer not found: {printerName}") { PrinterName = printerName; } } }