using System; namespace XP.Common.Localization.Exceptions { /// /// 资源键未找到异常 | Resource key not found exception /// public class ResourceKeyNotFoundException : LocalizationException { /// /// 资源键 | Resource key /// public string ResourceKey { get; } /// /// 构造函数 | Constructor /// /// 资源键 | Resource key public ResourceKeyNotFoundException(string resourceKey) : base($"Resource key not found: {resourceKey}") { ResourceKey = resourceKey; } } }