ChipDemo/Core/Features/FeatureExceptionContext.cs

22 lines
504 B
C#
Raw Normal View History

2023-04-07 22:10:35 +08:00
using Demo.Models;
namespace Demo.Features;
/// <summary>
/// 功能运行时异常上下文
/// </summary>
2023-04-08 08:35:57 +08:00
public class FeatureExceptionContext
2023-04-07 22:10:35 +08:00
{
2023-04-08 08:35:57 +08:00
public Feature Feature { get; }
public FeatureException Exception { get; }
public FeatureExceptionContext(Feature feature, FeatureException exception)
2023-04-07 22:10:35 +08:00
{
Feature = feature;
Exception = exception;
}
/// <summary>
/// 表示异常是否已处理
/// </summary>
public bool Handled { get; set; } = false;
}