将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,25 @@
using System;
namespace XP.Common.Localization.Exceptions
{
/// <summary>
/// 资源键未找到异常 | Resource key not found exception
/// </summary>
public class ResourceKeyNotFoundException : LocalizationException
{
/// <summary>
/// 资源键 | Resource key
/// </summary>
public string ResourceKey { get; }
/// <summary>
/// 构造函数 | Constructor
/// </summary>
/// <param name="resourceKey">资源键 | Resource key</param>
public ResourceKeyNotFoundException(string resourceKey)
: base($"Resource key not found: {resourceKey}")
{
ResourceKey = resourceKey;
}
}
}