将Feature/XP.Common和Feature/XP.Hardware分支合并至Develop/XP.forHardwareAndCommon,完善XPapp注册和相关硬件类库通用类库功能。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user