using System; namespace XP.Common.PdfViewer.Exceptions { /// /// PDF 加载异常 | PDF load exception /// 当 PDF 文件格式无效或加载失败时抛出 | Thrown when PDF format is invalid or loading fails /// public class PdfLoadException : Exception { /// /// 加载失败的文件路径 | File path that failed to load /// public string? FilePath { get; } public PdfLoadException(string message, string? filePath = null, Exception? innerException = null) : base(message, innerException) { FilePath = filePath; } } }