这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.7 KiB

LINGYUN.Abp.ExceptionHandling

A secondary extension based on the ABP framework's IExceptionSubscriber interface, used for customizing exception notification methods.

Features

  • Provides unified exception handling and notification mechanism
  • Supports custom exception handlers
  • Supports exception notification filtering
  • Supports integration with other notification modules (such as email, real-time notifications, etc.)

Configuration and Usage

Just configure AbpExceptionHandlingOptions to define which exceptions need to send notifications.

    [DependsOn(
        typeof(AbpExceptionHandlingModule)
        )]
    public class YouProjectModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            // Customize exception handling
            Configure<AbpExceptionHandlingOptions>(options =>
            {
                // Add exception types that need to be handled
                options.Handlers.Add<AbpException>();
            });
        }
    }

Configuration Options

  • Handlers: List of exception handlers, used to define which exception types need to be handled
  • HasNotifierError: Check if an exception needs to send notifications

Extension Modules

More

For more information and configuration examples, please refer to the documentation.