using System; using System.Linq; using Volo.Abp.Collections; namespace Sanhe.Abp.ExceptionHandling; public class AbpExceptionHandlingOptions { public ITypeList Handlers { get; } public AbpExceptionHandlingOptions() { Handlers = new TypeList(); } public bool HasNotifierError(Exception ex) { if (typeof(IHasNotifierErrorMessage).IsAssignableFrom(ex.GetType())) { return true; } return Handlers.Any(x => x.IsAssignableFrom(ex.GetType())); } }