原文:https://www.cnblogs.com/jiangchengbiao/p/9713020.html
在Application
层,添加如下代码即可
using Abp.Dependency;
using Abp.Events.Bus.Exceptions;
using Abp.Events.Bus.Handlers;
using System;
using System.Collections.Generic;
using System.Text;
namespace BIMMP
{
public class MyException : IEventHandler<AbpHandledExceptionData>, ITransientDependency
{
public void HandleEvent(AbpHandledExceptionData eventData)
{
throw eventData.Exception;
}
}
}