ABP VS调试异常

原文: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;
        }
    }
}

posted @ 2020-07-06 17:25  古兴越  阅读(188)  评论(0编辑  收藏  举报