将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>
/// PDF 加载异常 | PDF load exception
/// 当 PDF 文件格式无效或加载失败时抛出 | Thrown when PDF format is invalid or loading fails
/// </summary>
public class PdfLoadException : Exception
{
/// <summary>
/// 加载失败的文件路径 | File path that failed to load
/// </summary>
public string? FilePath { get; }
public PdfLoadException(string message, string? filePath = null, Exception? innerException = null)
: base(message, innerException)
{
FilePath = filePath;
}
}
}