26 lines
715 B
C#
26 lines
715 B
C#
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;
|
|
}
|
|
}
|
|
}
|