Files
XplorePlane/XP.Common/PdfViewer/Exceptions/PdfLoadException.cs
T

23 lines
676 B
C#

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;
}
}
}