ChipDemo/Core/Features/FeatureException.cs

18 lines
403 B
C#
Raw Normal View History

2023-04-07 22:10:35 +08:00
using Demo.Models;
namespace Demo.Features;
2023-04-08 08:35:57 +08:00
public class FeatureException : Exception
2023-04-07 22:10:35 +08:00
{
2023-04-08 08:35:57 +08:00
public IMetadata Metadata { get; }
public Feature Feature { get; }
2023-04-07 22:10:35 +08:00
private Exception _innerException;
2023-04-08 08:35:57 +08:00
public FeatureException(IMetadata metadata, Feature feature, Exception ex) : base(ex.Message)
2023-04-07 22:10:35 +08:00
{
Metadata = metadata;
Feature = feature;
_innerException = ex;
}
}