ChipDemo/Core/Features/FeatureException.cs

18 lines
403 B
C#

using Demo.Models;
namespace Demo.Features;
public class FeatureException : Exception
{
public IMetadata Metadata { get; }
public Feature Feature { get; }
private Exception _innerException;
public FeatureException(IMetadata metadata, Feature feature, Exception ex) : base(ex.Message)
{
Metadata = metadata;
Feature = feature;
_innerException = ex;
}
}